Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FilesTrash] Enable dropping onto the Trash root
The Trash root in Files app is a fake volume thus existing functionality that enables dropping files typically bails early or fails with other checks (e.g. verifying the fileSystem is the same as the entries being dropped). This updates various logic to introduce a new check that verifies the supplied selection is on a volume that is trashable AND resides in a location on that volume that is enabled for trash. In the event all this is true, delegate the operation to the TrashIOTask instead of move or copy like existing drag drop functionality as trash must always be an intra file system operation. Bug: b:241517469 Test: browser_tests --gtest_filter=*trashDragDrop* Change-Id: I0f14923527c5c403548b8bce9cf8cce35bb40f65 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3812712 Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Commit-Queue: Ben Reich <benreich@chromium.org> Cr-Commit-Position: refs/heads/main@{#1032896}
- Loading branch information
Showing
7 changed files
with
326 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.