Chromium Code Reviews
DescriptionFix 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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63176
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #
Total comments: 6
Patch Set 4 : '' #Patch Set 5 : change from count to boolean for activation of timers #Patch Set 6 : counter is better #
Total comments: 3
Patch Set 7 : reduce calls to timeBegin/timeEnd by tracking state #Patch Set 8 : reduce calls to timeBegin/timeEnd by tracking state #Patch Set 9 : nonono - fix thread safety problem, simplify! #
Total comments: 3
Messages
Total messages: 6 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||