OLD | NEW |
---|---|
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) | |
brettw
2012/05/18 05:47:05
It's not clear to me why Android & Posix early ret
rvargas (doing something else)
2012/05/18 18:11:04
I added a very short comment.
The reason is that
| |
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; | |
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 |
OLD | NEW |