summaryrefslogtreecommitdiffstats
path: root/app/hi_res_timer_manager_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'app/hi_res_timer_manager_win.cc')
-rw-r--r--app/hi_res_timer_manager_win.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/hi_res_timer_manager_win.cc b/app/hi_res_timer_manager_win.cc
index da25d70..6fbffca 100644
--- a/app/hi_res_timer_manager_win.cc
+++ b/app/hi_res_timer_manager_win.cc
@@ -7,7 +7,7 @@
#include "base/time.h"
HighResolutionTimerManager::HighResolutionTimerManager()
- : hi_res_clock_available_(false) {
+ : hi_res_clock_used_(false) {
SystemMonitor* system_monitor = SystemMonitor::Get();
system_monitor->AddObserver(this);
UseHiResClock(!system_monitor->BatteryPower());
@@ -23,8 +23,7 @@ void HighResolutionTimerManager::OnPowerStateChange(bool on_battery_power) {
}
void HighResolutionTimerManager::UseHiResClock(bool use) {
- if (use == hi_res_clock_available_)
+ if (use == hi_res_clock_used_)
return;
- hi_res_clock_available_ = use;
base::Time::EnableHighResolutionTimer(use);
}