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

Issue 831413002: views: menu: Unwind multiple menu message loops eagerly with EXIT_ALL (Closed)

Created:
5 years, 11 months ago by spang
Modified:
5 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: menu: Unwind multiple menu message loops eagerly with EXIT_ALL This allows menus to fully unwind after MenuController::CancelAll() is called, without any additional events processed through the nested dispatcher. In particular, tests that cancel their menu cannot hang at the very end of the test when there are no more events left to dispatch. Before, we relied on some event - ANY event - getting through nested dispatch in order to continue unwinding. This could cause hangs in test code when there weren't any more events. If a test calls MenuController::CancelAll() and then terminates its outer RunLoop, the program should terminate. This change ensures that. BUG=432576, 446335 TEST=interactive_ui_tests Committed: https://crrev.com/8f674371c1e60b9de8ce6dd280ea77e1e592bc32 Cr-Commit-Position: refs/heads/master@{#310180}

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments from sky #

Total comments: 1

Patch Set 3 : also EXIT_DESTROYED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M ui/views/controls/menu/menu_controller.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
spang
5 years, 11 months ago (2015-01-06 00:34:52 UTC) #2
spang
+ more specific bug https://code.google.com/p/chromium/issues/detail?id=432576
5 years, 11 months ago (2015-01-06 00:52:49 UTC) #3
sky
https://codereview.chromium.org/831413002/diff/1/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/831413002/diff/1/ui/views/controls/menu/menu_controller.cc#newcode447 ui/views/controls/menu/menu_controller.cc:447: TerminateNestedMessageLoop(); Move this up to around 437'ish. An else ...
5 years, 11 months ago (2015-01-06 01:00:15 UTC) #4
spang
https://codereview.chromium.org/831413002/diff/1/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/831413002/diff/1/ui/views/controls/menu/menu_controller.cc#newcode447 ui/views/controls/menu/menu_controller.cc:447: TerminateNestedMessageLoop(); On 2015/01/06 01:00:15, sky wrote: > Move this ...
5 years, 11 months ago (2015-01-06 19:14:12 UTC) #5
spang
https://codereview.chromium.org/831413002/diff/20001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/831413002/diff/20001/ui/views/controls/menu/menu_controller.cc#newcode437 ui/views/controls/menu/menu_controller.cc:437: } else if (exit_type_ == EXIT_ALL && message_loop_depth_) { ...
5 years, 11 months ago (2015-01-06 19:22:27 UTC) #6
sky
LGTM
5 years, 11 months ago (2015-01-06 22:36:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/831413002/40001
5 years, 11 months ago (2015-01-06 22:43:55 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-07 00:19:31 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 00:21:37 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8f674371c1e60b9de8ce6dd280ea77e1e592bc32
Cr-Commit-Position: refs/heads/master@{#310180}

Powered by Google App Engine
This is Rietveld 408576698