Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / content / browser / battery_status / battery_status_manager_default.cc
blobcd037cf37c984e66d54b1d2a8d2fdf084e28f686
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/battery_status/battery_status_manager.h"
7 #include "base/logging.h"
9 namespace content {
11 namespace {
13 class BatteryStatusManagerDefault : public BatteryStatusManager {
14 public:
15 explicit BatteryStatusManagerDefault(
16 const BatteryStatusService::BatteryUpdateCallback& callback) {}
17 virtual ~BatteryStatusManagerDefault() {}
19 private:
20 // BatteryStatusManager:
21 virtual bool StartListeningBatteryChange() OVERRIDE {
22 NOTIMPLEMENTED();
23 return false;
26 virtual void StopListeningBatteryChange() OVERRIDE { NOTIMPLEMENTED(); }
28 DISALLOW_COPY_AND_ASSIGN(BatteryStatusManagerDefault);
31 } // namespace
33 // static
34 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create(
35 const BatteryStatusService::BatteryUpdateCallback& callback) {
36 return scoped_ptr<BatteryStatusManager>(
37 new BatteryStatusManagerDefault(callback));
40 } // namespace content