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

Issue 342011: Reset the Mac message pump's delayed work timer upon waking from system sleep (Closed)

Created:
11 years, 1 month ago by Mark Mentovai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, pam+watch_chromium.org, John Grabowski
Visibility:
Public.

Description

Reset the Mac message pump's delayed work timer upon waking from system sleep. CFRunLoopTimers are implemented in terms of kernel ticks, a time base which is suspended while the system is sleeping. In order to properly perform delayed work at the proper initially-scheduled time (or at system wake if the scheduled time passed while the system was asleep), the associated timer needs to be reset to the most recently scheduled next-fire time on wake from sleep. BUG=22508 TEST= - Make Chrome the active application. - Close all Chrome windows. - Close the laptop lid. - Wait for it to begin sleeping, indicated by the pulsing light. NOTE: wait until the light actually begins pulsing, not just until it turns on. The disk and fans should all be stopped. - Reopen the laptop. If needed, authenticate to the screen saver. - Click the Chrome icon in the dock. A new window should open on the New Tab page. - Quickly type "google.com/" into the omnibox. - The page should load, its favicon should be visible, and the tab title should read "Google". This should happen as instantly as a normal page load. The tab title should not "stick" on "New Tab" and the icon load should not be delayed for any amount of time. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30335

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -2 lines) Patch
M base/base.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M base/message_pump_mac.h View 3 chunks +18 lines, -0 lines 0 comments Download
M base/message_pump_mac.mm View 1 8 chunks +97 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mark Mentovai
11 years, 1 month ago (2009-10-28 03:55:30 UTC) #1
Avi (use Gerrit)
http://codereview.chromium.org/342011/diff/1/4 File base/message_pump_mac.mm (right): http://codereview.chromium.org/342011/diff/1/4#newcode110 Line 110: root_power_domain_ = IORegisterForSystemPower(this, Re QA1340, why not use ...
11 years, 1 month ago (2009-10-28 04:25:24 UTC) #2
Mark Mentovai
http://codereview.chromium.org/342011/diff/1/4 File base/message_pump_mac.mm (right): http://codereview.chromium.org/342011/diff/1/4#newcode110 Line 110: root_power_domain_ = IORegisterForSystemPower(this, Avi wrote: > Re QA1340, ...
11 years, 1 month ago (2009-10-28 04:33:23 UTC) #3
TVL
On 2009/10/28 04:33:23, Mark Mentovai wrote: > http://codereview.chromium.org/342011/diff/1/4 > File base/message_pump_mac.mm (right): > > http://codereview.chromium.org/342011/diff/1/4#newcode110 ...
11 years, 1 month ago (2009-10-28 11:56:51 UTC) #4
TVL
lgtm do we also need to worry about issues when the clock shifts based on ...
11 years, 1 month ago (2009-10-28 11:58:58 UTC) #5
pink (ping after 24hrs)
LGTM TVL, i remember jgm having similar issues with our metrics uploading in Desktop. Do ...
11 years, 1 month ago (2009-10-28 13:46:34 UTC) #6
TVL
On 2009/10/28 13:46:34, pink wrote: > LGTM > > TVL, i remember jgm having similar ...
11 years, 1 month ago (2009-10-28 13:48:46 UTC) #7
pink (ping after 24hrs)
11 years, 1 month ago (2009-10-28 15:19:11 UTC) #8
On Wed, Oct 28, 2009 at 9:48 AM,  <thomasvl@chromium.org> wrote:
> It was with NSTimers, that was what I went digging for last night and sent
> Mark
> the related pointers that sent us into the CF sources to confirm what
> CFRunLoopTimer does.
>
> http://codereview.chromium.org/342011
>

Five steps ahead of me, as always. Good good.

-- 
Mike Pinkerton
Mac Weenie
pinkerton@google.com

Powered by Google App Engine
This is Rietveld 408576698