[Files app] Hide delete button for Downloads folder
Change FileSelection to receive VolumeManager to be able to get location info and determine if the selection contains any read-only entry. Change logic to hide delete button to check read-only from the file selection and the special case for /Downloads folder inside MyFiles. Remove test checkDownloadsContextMenu with MyFilesVolume flag disabled because the delete button behaves differently and the flag is enabled by default. Bug: 921483 Change-Id: I731624948606f6b7ccb6617dd424617d97b0020e Reviewed-on: https://chromium-review.googlesource.com/c/1457884 Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:Joel Hockey <joelhockey@chromium.org> Commit-Queue: Joel Hockey <joelhockey@chromium.org> Cr-Commit-Position: refs/heads/master@{#630096}
Showing
Please register or sign in to comment