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

Side by Side Diff: base/system_monitor/system_monitor_android.cc

Issue 10389227: Base: Add power requirements to the System monitor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « base/system_monitor/system_monitor.h ('k') | base/system_monitor/system_monitor_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/system_monitor/system_monitor.h" 5 #include "base/system_monitor/system_monitor.h"
6 6
7 namespace base { 7 namespace base {
8 8
9 void SystemMonitor::BeginPowerRequirement(PowerRequirement requirement,
10 const std::string& reason) {
11 if (requirement == CPU_REQUIRED)
12 return;
13
14 NOTIMPLEMENTED();
15 }
16
17 void SystemMonitor::EndPowerRequirement(PowerRequirement requirement,
18 const std::string& reason) {
19 if (requirement == CPU_REQUIRED)
20 return; // Nothing to do.
21
22 NOTIMPLEMENTED();
23 }
24
9 bool SystemMonitor::IsBatteryPower() { 25 bool SystemMonitor::IsBatteryPower() {
10 NOTIMPLEMENTED(); 26 NOTIMPLEMENTED();
11 return true; 27 return true;
12 } 28 }
13 29
14 } // namespace base 30 } // namespace base
OLDNEW
« no previous file with comments | « base/system_monitor/system_monitor.h ('k') | base/system_monitor/system_monitor_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698