[filesapp] Make common helper for checking what we can delete.
Previously the way that Files App checked whether a file could be deleted was different depending on which method that was taken to delete the file. Some places were also calling private methods. Fix this: Make common helper |deleteEntries| that deletes the files specified if possible. Change quick_view_controller.js to use this helper. Note: |canDeleteEntries_| does not check root and fake entries because |canExecute| must behave differently for those types of entries. Also clarify comments and fix closure types. Tbr: alex Bug: 803259 Change-Id: I9c128857b8c3e70f3f287d08a9130fb0728ae249 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035502Reviewed-by:Noel Gordon <noel@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#738405}
Showing
Please register or sign in to comment