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

Unified Diff: chrome/browser/browser_main.cc

Issue 113824: Do not monitor system power state during unit tests. (Closed)
Patch Set: Created 11 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
« base/test_suite.h ('K') | « base/time_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index d2bc9de87448a7298feedddac32b15c09734a4d7..5b955eb5f697d8a04be456f4374c98c4aeb30e52 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -265,6 +265,11 @@ int BrowserMain(const MainFunctionParams& parameters) {
// Initialize the SystemMonitor
base::SystemMonitor::Start();
+#if defined(OS_WIN)
+ // We want to monitor system power state to adjust our high resolution
+ // timer settings. But it's necessary only on Windows.
+ base::Time::StartSystemMonitorObserver();
+#endif // defined(OS_WIN)
// Initialize statistical testing infrastructure.
FieldTrialList field_trial;
« base/test_suite.h ('K') | « base/time_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698