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

Issue 780023002: Fix crash after Launcher drag/drop (Closed)

Created:
6 years ago by Greg Levin
Modified:
6 years ago
Reviewers:
jennyz
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash after Launcher drag/drop BUG=439055 TEST=In Launcher, drag app to solitary folder on second page In the case described, AppsGridView::EndDrag()'s call to MoveItemToFolder() makes a recursive call to AppsGridView::EndDrag(), which deletes drag_view_. Hence the dereferencing NULL when we return to the top-level call. Committed: https://crrev.com/286e841626dea4e579b5ddfc86fe8e3aec8bcaa9 Cr-Commit-Position: refs/heads/master@{#308404}

Patch Set 1 #

Patch Set 2 : Add unit test #

Patch Set 3 : Fix timing for slow valgrind test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -19 lines) Patch
M ui/app_list/views/apps_grid_view.cc View 1 1 chunk +12 lines, -10 lines 0 comments Download
M ui/app_list/views/apps_grid_view_unittest.cc View 1 2 4 chunks +71 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Greg Levin
Please have a look! As a possible alternative fix, I could add if (!drag_view_) return; ...
6 years ago (2014-12-04 18:49:01 UTC) #2
jennyz
The fix looks fine to me, is it possible to add a test case for ...
6 years ago (2014-12-04 19:26:59 UTC) #3
Greg Levin
> is it possible to add a test case for this? Yes, and no. I ...
6 years ago (2014-12-11 23:36:03 UTC) #4
jennyz
lgtm
6 years ago (2014-12-13 00:23:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/780023002/20001
6 years ago (2014-12-15 18:17:38 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-15 20:23:32 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/286e841626dea4e579b5ddfc86fe8e3aec8bcaa9 Cr-Commit-Position: refs/heads/master@{#308404}
6 years ago (2014-12-15 20:24:20 UTC) #9
Greg Levin
6 years ago (2014-12-19 17:17:00 UTC) #11
Message was sent while issue was closed.
MouseDragItemIntoLonelyFolder unit test was failing under valgrind.  The slow
speed of valgrind was somehow altering the behavior of the drag-drop: in this
one case, moving the dragged item over the folder would push the folder off the
second page, and into the now empty last position on the first page, spoiling
the test.  In every other environment, the item hovers over and drops into the
folder.  Changing the pagination model's transition time to 0 for this test
seems to resolve the issue.

Powered by Google App Engine
This is Rietveld 408576698