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

Unified Diff: base/system_monitor/system_monitor_posix.cc

Issue 10406012: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/system_monitor/system_monitor_android.cc ('k') | base/system_monitor/system_monitor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/system_monitor/system_monitor_posix.cc
===================================================================
--- base/system_monitor/system_monitor_posix.cc (revision 137792)
+++ base/system_monitor/system_monitor_posix.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,6 +6,22 @@
namespace base {
+void SystemMonitor::BeginPowerRequirement(PowerRequirement requirement,
+ const std::string& reason) {
+ if (requirement == CPU_REQUIRED)
+ return;
+
+ NOTIMPLEMENTED();
+}
+
+void SystemMonitor::EndPowerRequirement(PowerRequirement requirement,
+ const std::string& reason) {
+ if (requirement == CPU_REQUIRED)
+ return; // Nothing to do.
+
+ NOTIMPLEMENTED();
+}
+
bool SystemMonitor::IsBatteryPower() {
NOTIMPLEMENTED();
return false;
« no previous file with comments | « base/system_monitor/system_monitor_android.cc ('k') | base/system_monitor/system_monitor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698