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

Issue 466693002: Fix app list DCHECKs getting hit when model updates occur during dragging (Closed)

Created:
6 years, 4 months ago by tapted
Modified:
6 years, 4 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Project:
chromium
Visibility:
Public.

Description

Fix app list DCHECKs getting hit when model updates occur during dragging The DCHECK from AppsGridView::UpdateDragFromItem() is changed to an early return. This is a valid codepath, because drag events can still arrive from the AppListItemView after a drag is cancelled, e.g., via Sync. AppsGridViewTest.MouseDragWithFolderDisabled is updated to include coverage for this codepath. A DCHECK was also hit in UpdateDragFromReparentItem(). This was not a valid code path. The problem was that the root grid view tried to cancel only its "part" of the drag, rather than forwarding the cancel request to the folder managing the drag. AppListMainViewTest.MouseDragItemOutOfFolderWithCancel is added to include coverage for this codepath. BUG=402784 TEST=app_list_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289525

Patch Set 1 #

Patch Set 2 : Fix DCHECK hit in UpdateDragFromReparentItem #

Patch Set 3 : nit comments #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : add test comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -49 lines) Patch
M ui/app_list/views/app_list_main_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/views/app_list_main_view.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M ui/app_list/views/app_list_main_view_unittest.cc View 1 2 3 4 3 chunks +80 lines, -45 lines 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 3 4 chunks +14 lines, -3 lines 0 comments Download
M ui/app_list/views/apps_grid_view_delegate.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/app_list/views/apps_grid_view_unittest.cc View 2 3 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
tapted
Hi Chris - PTAL. More analysis on the bug.
6 years, 4 months ago (2014-08-12 06:51:55 UTC) #1
tapted
ugh - there's more of these. let me add more tests [22048:22048:0812/171504:FATAL:apps_grid_view.cc(802)] Check failed: drag_view_. ...
6 years, 4 months ago (2014-08-12 07:17:54 UTC) #2
tapted
OK Chris - it's ready for you!
6 years, 4 months ago (2014-08-13 06:44:30 UTC) #3
calamity
lgtm. https://codereview.chromium.org/466693002/diff/80001/ui/app_list/views/app_list_main_view_unittest.cc File ui/app_list/views/app_list_main_view_unittest.cc (right): https://codereview.chromium.org/466693002/diff/80001/ui/app_list/views/app_list_main_view_unittest.cc#newcode289 ui/app_list/views/app_list_main_view_unittest.cc:289: TEST_F(AppListMainViewTest, MouseDragItemOutOfFolderWithCancel) { nit: Test could use a ...
6 years, 4 months ago (2014-08-14 01:22:04 UTC) #4
tapted
https://codereview.chromium.org/466693002/diff/80001/ui/app_list/views/app_list_main_view_unittest.cc File ui/app_list/views/app_list_main_view_unittest.cc (right): https://codereview.chromium.org/466693002/diff/80001/ui/app_list/views/app_list_main_view_unittest.cc#newcode289 ui/app_list/views/app_list_main_view_unittest.cc:289: TEST_F(AppListMainViewTest, MouseDragItemOutOfFolderWithCancel) { On 2014/08/14 01:22:04, calamity wrote: > ...
6 years, 4 months ago (2014-08-14 01:35:38 UTC) #5
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 4 months ago (2014-08-14 01:35:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/466693002/100001
6 years, 4 months ago (2014-08-14 01:37:35 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-14 07:44:51 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 11:22:00 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (100001) as 289525

Powered by Google App Engine
This is Rietveld 408576698