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

Issue 1515203002: Update closing of nested asynchronous menus (Closed)

Created:
5 years ago by jonross
Modified:
4 years, 11 months ago
Reviewers:
sky, mohsen
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

Update closing of nested asynchronous menus Two updates to the closing of menus running asynchronously. Update the handling of EXIT_ALL when async menus are nested within others, so that MenuControllerDelegate::OnMenuClosed is properly called. Update closing of an async menu that is performing drag/drop to properly notify MenuControllerDelegate::OnMenuClosed, once hide animations have ran. TEST=MenuControllerTest.AsynchronousPerformDrop, MenuControllerTest.AsynchronousDragComplete, MenuControllerTest.DoubleAsynchronousNested BUG=557130 Committed: https://crrev.com/ac5eac3ea6fa6585d4b2900e39bf5f491ac36570 Cr-Commit-Position: refs/heads/master@{#369536}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix Memory Crash #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -14 lines) Patch
M ui/views/controls/menu/menu_controller.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 5 chunks +21 lines, -13 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 4 chunks +105 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (7 generated)
jonross
Hi, Could you provide an owner's review for this change? I have updated MenuController exiting ...
5 years ago (2015-12-11 17:57:03 UTC) #4
sky
https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc#newcode814 ui/views/controls/menu/menu_controller.cc:814: // ExitAsyncRun can delete us, however CloseAllNestedMenus enqueues work ...
5 years ago (2015-12-11 18:37:46 UTC) #5
jonross
https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc#newcode814 ui/views/controls/menu/menu_controller.cc:814: // ExitAsyncRun can delete us, however CloseAllNestedMenus enqueues work ...
4 years, 11 months ago (2016-01-06 21:18:32 UTC) #6
sky
https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc#newcode814 ui/views/controls/menu/menu_controller.cc:814: // ExitAsyncRun can delete us, however CloseAllNestedMenus enqueues work ...
4 years, 11 months ago (2016-01-06 22:20:56 UTC) #7
jonross
https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1515203002/diff/20001/ui/views/controls/menu/menu_controller.cc#newcode814 ui/views/controls/menu/menu_controller.cc:814: // ExitAsyncRun can delete us, however CloseAllNestedMenus enqueues work ...
4 years, 11 months ago (2016-01-08 20:52:01 UTC) #8
sky
Did you try running asan to understand why the crash is happening? On Fri, Jan ...
4 years, 11 months ago (2016-01-08 23:49:19 UTC) #9
jonross
No I hadn't ran under ASAN, I forgot to. Apparently the failure being reported from ...
4 years, 11 months ago (2016-01-11 18:01:07 UTC) #10
sky
LGTM https://codereview.chromium.org/1515203002/diff/40001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1515203002/diff/40001/ui/views/controls/menu/menu_controller.cc#newcode1072 ui/views/controls/menu/menu_controller.cc:1072: if (GetActiveInstance()) Please add a comment as to ...
4 years, 11 months ago (2016-01-11 20:56:04 UTC) #11
jonross
https://codereview.chromium.org/1515203002/diff/40001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1515203002/diff/40001/ui/views/controls/menu/menu_controller.cc#newcode1072 ui/views/controls/menu/menu_controller.cc:1072: if (GetActiveInstance()) On 2016/01/11 20:56:04, sky wrote: > Please ...
4 years, 11 months ago (2016-01-11 21:27:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515203002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515203002/80001
4 years, 11 months ago (2016-01-14 20:06:43 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 11 months ago (2016-01-14 20:59:47 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 22:03:19 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ac5eac3ea6fa6585d4b2900e39bf5f491ac36570
Cr-Commit-Position: refs/heads/master@{#369536}

Powered by Google App Engine
This is Rietveld 408576698