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

Unified Diff: app/hi_res_timer_manager_win.cc

Issue 3948001: Revert 63176 - Fix regression where high resolution timers could be activated... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 2 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
« no previous file with comments | « app/hi_res_timer_manager_unittest.cc ('k') | base/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/hi_res_timer_manager_win.cc
===================================================================
--- app/hi_res_timer_manager_win.cc (revision 63176)
+++ 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);
}
« no previous file with comments | « app/hi_res_timer_manager_unittest.cc ('k') | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698