Add 'Manage in Drive' button to Files App context menu
Adds a 'Manage in Drive' button to the context menu for entries in the Files app for ChromeOS. Creates a new DriveManageAction which appears enabled only for non-directory entries (for now) in Drive when offline mode is not enabled. Uses getEntryProperties() for the entry to get its 'alternateUrl' (provided by the Drive Sync API) and navigates to this URL in the browser. 'Manage in Drive', ensure the browser window opens and navigates to the file. Test: Right-click on a file in Google Drive in the File Manager, select Bug: 831480 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ieaa359b9e825bef166ea25ec23ae1693681d91f7 Reviewed-on: https://chromium-review.googlesource.com/1011465 Commit-Queue: Sasha Morrissey <sashab@chromium.org> Reviewed-by:Naoki Fukino <fukino@chromium.org> Cr-Commit-Position: refs/heads/master@{#556375}
Showing
Please register or sign in to comment