DescriptionFix 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 #
Messages
Total messages: 9 (0 generated)
|