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

Issue 10388056: Fixes drag and drop crash. The problem was when I made (Closed)

Created:
8 years, 7 months ago by sky
Modified:
8 years, 7 months ago
CC:
chromium-reviews, tfarina, sadrul, dcheng, ben+watch_chromium.org
Visibility:
Public.

Description

Fixes drag and drop crash. The problem was when I made MenuController::SetExitType do a QuitNow it would prematurely exit out of drag and drop, causing a crash. The fix is to not QuitNow if drag and drop is on going. (Have I mentioned I hate nested message loops?). I also changed DragDropController to QuitNow, this way tests can work and seems like what we want anyway. Lastly I made all the bookmarkbarviewtests work again as they provide coverage of this. BUG=127348 TEST=covered by tests R=ben@chromium.org,varunjain@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=136365

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -50 lines) Patch
M ash/drag_drop/drag_drop_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/drag_drop/drag_drop_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 10 chunks +43 lines, -39 lines 0 comments Download
M ui/views/controls/menu/menu_controller.h View 3 chunks +14 lines, -4 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 4 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sky
8 years, 7 months ago (2012-05-09 21:44:01 UTC) #1
Ben Goodger (Google)
sadness. lgtm.
8 years, 7 months ago (2012-05-10 14:38:03 UTC) #2
varunjain
8 years, 7 months ago (2012-05-10 17:07:28 UTC) #3
On 2012/05/10 14:38:03, Ben Goodger (Google) wrote:
> sadness. lgtm.

lgtm

Powered by Google App Engine
This is Rietveld 408576698