Descriptionapp_list: Fix possible out of bounds index.
- Fix a problem that could not drop at the last position when dragging
an item out of a folder;
- Fix a case view_model_.Move is called with an out of range target index
when dragging the last item out of folder;
- Add a test for dragging last item and drop it at last slot;
- Speculative fix to protect using an index from data model to modify
view_model_;
- A few more DCHECKs to catch the out-of-bound case;
BUG=370064
TEST=AppListMainViewTest.DragLastItemFromFolderAndDropAtLastSlot
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273151
Patch Set 1 #Patch Set 2 : add test, speculative out-of-bound add fix #Patch Set 3 : fix win/mac #Patch Set 4 : rebase #
Total comments: 3
Patch Set 5 : DCHECK -> CHECK #
Messages
Total messages: 9 (0 generated)
|