summaryrefslogtreecommitdiffstats
path: root/app/hi_res_timer_manager.h
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 03:53:13 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 03:53:13 +0000
commit32e9efbc0564ea718a7fb3b56d7ad934fefce70f (patch)
tree308e462dda8dc50008e9dfe26ae8b37c2705a2c7 /app/hi_res_timer_manager.h
parent8f31f41edbe94651e1df889993be0704954942db (diff)
downloadchromium_src-32e9efbc0564ea718a7fb3b56d7ad934fefce70f.zip
chromium_src-32e9efbc0564ea718a7fb3b56d7ad934fefce70f.tar.gz
chromium_src-32e9efbc0564ea718a7fb3b56d7ad934fefce70f.tar.bz2
Revert 63176 - Fix regression where high resolution timers could be activated even under
battery power. Add unit test to protect chromium from developers like me in the future. The fix is a one-liner in hi_res_timer_manager_win.cc. The rest of the code change is the mechanics to enable the unit test. BUG=59528 TEST=HiResTimerManagerTest.ToggleOnOff Review URL: http://codereview.chromium.org/3848002 TBR=mbelshe@chromium.org Review URL: http://codereview.chromium.org/3948001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/hi_res_timer_manager.h')
-rw-r--r--app/hi_res_timer_manager.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/hi_res_timer_manager.h b/app/hi_res_timer_manager.h
index fdc10b3..7eed795 100644
--- a/app/hi_res_timer_manager.h
+++ b/app/hi_res_timer_manager.h
@@ -18,14 +18,11 @@ class HighResolutionTimerManager : public SystemMonitor::PowerObserver {
// SystemMonitor::PowerObserver:
void OnPowerStateChange(bool on_battery_power);
- // Returns true if the hi resolution clock could be used right now.
- bool hi_res_clock_available() const { return hi_res_clock_available_; }
-
private:
// Enable or disable the faster multimedia timer.
void UseHiResClock(bool use);
- bool hi_res_clock_available_;
+ bool hi_res_clock_used_;
DISALLOW_COPY_AND_ASSIGN(HighResolutionTimerManager);
};