| 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/macros.h" |
| 7 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 8 #include "chromeos/dbus/dbus_thread_manager.h" | 9 #include "chromeos/dbus/dbus_thread_manager.h" |
| 9 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" | 10 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" |
| 10 #include "chromeos/dbus/power_manager_client.h" | 11 #include "chromeos/dbus/power_manager_client.h" |
| 11 | 12 |
| 12 namespace device { | 13 namespace device { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 class PowerManagerObserver | 17 class PowerManagerObserver |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } // namespace | 146 } // namespace |
| 146 | 147 |
| 147 // static | 148 // static |
| 148 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create( | 149 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create( |
| 149 const BatteryStatusService::BatteryUpdateCallback& callback) { | 150 const BatteryStatusService::BatteryUpdateCallback& callback) { |
| 150 return scoped_ptr<BatteryStatusManager>( | 151 return scoped_ptr<BatteryStatusManager>( |
| 151 new BatteryStatusManagerChromeOS(callback)); | 152 new BatteryStatusManagerChromeOS(callback)); |
| 152 } | 153 } |
| 153 | 154 |
| 154 } // namespace device | 155 } // namespace device |
| OLD | NEW |