OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/battery/battery_status_manager.h" | 5 #include "device/battery/battery_status_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 | 9 |
9 namespace device { | 10 namespace device { |
10 | 11 |
11 namespace { | 12 namespace { |
12 | 13 |
13 class BatteryStatusManagerDefault : public BatteryStatusManager { | 14 class BatteryStatusManagerDefault : public BatteryStatusManager { |
14 public: | 15 public: |
15 explicit BatteryStatusManagerDefault( | 16 explicit BatteryStatusManagerDefault( |
16 const BatteryStatusService::BatteryUpdateCallback& callback) {} | 17 const BatteryStatusService::BatteryUpdateCallback& callback) {} |
17 ~BatteryStatusManagerDefault() override {} | 18 ~BatteryStatusManagerDefault() override {} |
(...skipping 13 matching lines...) Expand all Loading... |
31 } // namespace | 32 } // namespace |
32 | 33 |
33 // static | 34 // static |
34 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create( | 35 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create( |
35 const BatteryStatusService::BatteryUpdateCallback& callback) { | 36 const BatteryStatusService::BatteryUpdateCallback& callback) { |
36 return scoped_ptr<BatteryStatusManager>( | 37 return scoped_ptr<BatteryStatusManager>( |
37 new BatteryStatusManagerDefault(callback)); | 38 new BatteryStatusManagerDefault(callback)); |
38 } | 39 } |
39 | 40 |
40 } // namespace device | 41 } // namespace device |
OLD | NEW |