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

Side by Side Diff: base/power_monitor/power_monitor.cc

Issue 18119002: Use a direct include of time headers in base/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 5 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/power_monitor/power_monitor.h ('k') | base/process/process_metrics.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/power_monitor/power_monitor.h" 5 #include "base/power_monitor/power_monitor.h"
6 6
7 #include "base/time.h" 7 #include "base/time/time.h"
8 8
9 namespace base { 9 namespace base {
10 10
11 static PowerMonitor* g_power_monitor = NULL; 11 static PowerMonitor* g_power_monitor = NULL;
12 12
13 #if defined(ENABLE_BATTERY_MONITORING) 13 #if defined(ENABLE_BATTERY_MONITORING)
14 // The amount of time (in ms) to wait before running the initial 14 // The amount of time (in ms) to wait before running the initial
15 // battery check. 15 // battery check.
16 static int kDelayedBatteryCheckMs = 10 * 1000; 16 static int kDelayedBatteryCheckMs = 10 * 1000;
17 #endif // defined(ENABLE_BATTERY_MONITORING) 17 #endif // defined(ENABLE_BATTERY_MONITORING)
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 DVLOG(1) << "Power Suspending"; 97 DVLOG(1) << "Power Suspending";
98 observers_->Notify(&PowerObserver::OnSuspend); 98 observers_->Notify(&PowerObserver::OnSuspend);
99 } 99 }
100 100
101 void PowerMonitor::NotifyResume() { 101 void PowerMonitor::NotifyResume() {
102 DVLOG(1) << "Power Resuming"; 102 DVLOG(1) << "Power Resuming";
103 observers_->Notify(&PowerObserver::OnResume); 103 observers_->Notify(&PowerObserver::OnResume);
104 } 104 }
105 105
106 } // namespace base 106 } // namespace base
OLDNEW
« no previous file with comments | « base/power_monitor/power_monitor.h ('k') | base/process/process_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698