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

Unified Diff: base/time.h

Issue 431008: Make SystemMonitor not a Singleton and move it out of base (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix ChromeFrame build Created 11 years, 1 month 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
Index: base/time.h
diff --git a/base/time.h b/base/time.h
index 8cd752ab756ba3a4a9d41a5550b90581e4ef64c3..33ab2271be5c252b604a4c2a5d3ae5e7868f160d 100644
--- a/base/time.h
+++ b/base/time.h
@@ -242,12 +242,9 @@ class Time {
static Time FromFileTime(FILETIME ft);
FILETIME ToFileTime() const;
- // Monitor system power state and disable high resolution timer when we're
- // on battery. See time_win.cc for more details.
- static void StartSystemMonitorObserver();
-
- // Enable high resolution timer unconditionally. Only for test code.
- static void EnableHiResClockForTests();
+ // Enable or disable Windows high resolution timer. For more details
+ // see comments in time_win.cc. Returns true on success.
+ static bool UseHighResolutionTimer(bool use);
#endif
// Converts an exploded structure representing either the local time or UTC

Powered by Google App Engine
This is Rietveld 408576698