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

Issue 1953393002: Stop using WaitMessage in MessagePumpForUI::WaitForWork (Closed)

Created:
4 years, 7 months ago by stanisc
Modified:
4 years, 7 months ago
Reviewers:
danakj, jbauman, brucedawson
CC:
chromium-reviews, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop using WaitMessage in MessagePumpForUI::WaitForWork When WaitMessage is called it ignores the current delay timeout and might end up waiting an arbitrary time. See the bug for the explanation. The fix is to loop back and call MsgWaitForMultipleObjectEx again with the remaining timeout. BUG=610005 Committed: https://crrev.com/05e1178680e47f4263f9c7087dad1d8e099a5027 Cr-Commit-Position: refs/heads/master@{#393375}

Patch Set 1 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -29 lines) Patch
M base/message_loop/message_pump_win.cc View 1 chunk +38 lines, -29 lines 2 comments Download

Messages

Total messages: 19 (7 generated)
stanisc
PTAL!
4 years, 7 months ago (2016-05-06 23:48:44 UTC) #4
danakj
+jbauman,brucedawson
4 years, 7 months ago (2016-05-10 21:54:08 UTC) #6
jbauman
lgtm
4 years, 7 months ago (2016-05-10 22:22:19 UTC) #7
danakj
https://codereview.chromium.org/1953393002/diff/20001/base/message_loop/message_pump_win.cc File base/message_loop/message_pump_win.cc (right): https://codereview.chromium.org/1953393002/diff/20001/base/message_loop/message_pump_win.cc#newcode226 base/message_loop/message_pump_win.cc:226: while ((delay = GetCurrentDelay()) != 0) { The old ...
4 years, 7 months ago (2016-05-11 01:13:36 UTC) #8
stanisc
https://codereview.chromium.org/1953393002/diff/20001/base/message_loop/message_pump_win.cc File base/message_loop/message_pump_win.cc (right): https://codereview.chromium.org/1953393002/diff/20001/base/message_loop/message_pump_win.cc#newcode226 base/message_loop/message_pump_win.cc:226: while ((delay = GetCurrentDelay()) != 0) { On 2016/05/11 ...
4 years, 7 months ago (2016-05-11 01:46:41 UTC) #9
brucedawson
lgtm
4 years, 7 months ago (2016-05-11 14:38:33 UTC) #10
stanisc
Ping! I hope this affects crbug.com/596190 which is Pri 1 bug.
4 years, 7 months ago (2016-05-11 21:13:05 UTC) #11
stanisc
danakj@, I need an owner approval. Could you take another look?
4 years, 7 months ago (2016-05-12 20:41:36 UTC) #12
danakj
On 2016/05/12 20:41:36, stanisc wrote: > danakj@, I need an owner approval. Could you take ...
4 years, 7 months ago (2016-05-12 20:51:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953393002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953393002/20001
4 years, 7 months ago (2016-05-12 21:29:57 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 7 months ago (2016-05-12 22:18:08 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 22:20:14 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/05e1178680e47f4263f9c7087dad1d8e099a5027
Cr-Commit-Position: refs/heads/master@{#393375}

Powered by Google App Engine
This is Rietveld 408576698