Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: services/device/battery/battery_status_manager_default.cc

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)
Patch Set: Java file format change Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "services/device/battery/battery_status_manager.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace device { 12 namespace device {
13 13
14 namespace { 14 namespace {
15 15
(...skipping 18 matching lines...) Expand all
34 } // namespace 34 } // namespace
35 35
36 // static 36 // static
37 std::unique_ptr<BatteryStatusManager> BatteryStatusManager::Create( 37 std::unique_ptr<BatteryStatusManager> BatteryStatusManager::Create(
38 const BatteryStatusService::BatteryUpdateCallback& callback) { 38 const BatteryStatusService::BatteryUpdateCallback& callback) {
39 return std::unique_ptr<BatteryStatusManager>( 39 return std::unique_ptr<BatteryStatusManager>(
40 new BatteryStatusManagerDefault(callback)); 40 new BatteryStatusManagerDefault(callback));
41 } 41 }
42 42
43 } // namespace device 43 } // namespace device
OLDNEW
« no previous file with comments | « services/device/battery/battery_status_manager_chromeos.cc ('k') | services/device/battery/battery_status_manager_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698