| Index: app/hi_res_timer_manager_win.cc
|
| ===================================================================
|
| --- app/hi_res_timer_manager_win.cc (revision 63198)
|
| +++ app/hi_res_timer_manager_win.cc (working copy)
|
| @@ -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::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);
|
| }
|
|
|