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

Issue 2433933007: Fix opening App Menu after Bookmarks Drag (Closed)

Created:
4 years, 2 months ago by jonross
Modified:
4 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix opening App Menu after Bookmarks Drag After dragging a nested bookmarks folder to the bookmarks bar, you could not open the App Menu. During a Drag operation BookmarkBarView can call Cancel in several circumstances. If a Cancel was received by MenuController before OnDragCompleted. Then the internal call to Cancel would not properly teardown the menu. With an active, but hidden, menu new menus, such as the AppMenu, could not launch. This change updates the logic of MenuController::OnDragCompleted to make sure that teardown occurs. TEST=MenuControllerTest.AsynchronousDragComplete, MenuControllerTest.AsynchronousCancelDuringDrag BUG=656948 Committed: https://crrev.com/6f08e5ae5e67d68510072d6873366a06841064fe Cr-Commit-Position: refs/heads/master@{#426592}

Patch Set 1 #

Patch Set 2 : Fix additional drag shutdown orders #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -7 lines) Patch
M ui/views/controls/menu/menu_controller.cc View 1 2 chunks +23 lines, -5 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 chunks +34 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
jonross
Hey sky@ A few interesting shutdown/cancellation cases for drag-and-drop where found. I've updated MenuController to ...
4 years, 2 months ago (2016-10-20 19:38:57 UTC) #10
sky
LGTM
4 years, 2 months ago (2016-10-20 20:45:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2433933007/20001
4 years, 2 months ago (2016-10-20 20:47:33 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-20 21:00:06 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:22:23 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6f08e5ae5e67d68510072d6873366a06841064fe
Cr-Commit-Position: refs/heads/master@{#426592}

Powered by Google App Engine
This is Rietveld 408576698