New issue
Advanced search Search tips

Issue 850371 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jul 20
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug

Blocking:
issue 850373



Sign in to add a comment

url_handler support in ChromeOS Gallery App

Project Member Reported by tapted@chromium.org, Jun 7 2018

Issue description

Chrome Version       : 69

To integrate the Camera App and the Gallery App, we need the ability to "deep link" into a specific photo/video from the camera extension.

Adding url_handlers to the packaged app manifest may be one way to achieve this

https://developer.chrome.com/apps/manifest/url_handlers
 
Cc: y...@chromium.org
Blocking: 850373
Cc: jcliang@chromium.org tclaiborne@google.com omrilio@chromium.org
Sasha has suggested a method: 
https://cs.chromium.org/chromium/src/chrome/browser/chromeos/file_manager/open_util.cc?l=67
But I can't find how this method is exposed to JS API, and whether it's usable from external extensions like the camera.

Owner: tapted@chromium.org
Hi Trent,
Could you identify an owner on the Gallery side?
Owner: y...@chromium.org
Status: Assigned (was: Available)
From fukino@:

Files app uses its private API, chrome.fileManagerPrivate.executeTask(), to open media files using built-in media players.
If we search video files from Chrome OS launcher, the default task is selected and executed here (https://codesearch.chromium.org/chromium/src/ui/file_manager/file_manager/background/js/launcher_search.js?rcl=3f8efa848e6842b28c150894286c9d1e430a33e6&l=190).
If you want to open video file, the first parameter for executeTask() should be "jcgeabjmjgoblfofpppfkcoakmfobdko|app|video".
To call this API, the camera extension needs permission to fileManagerPrivate, but I'm not sure if it is sufficient to add it to your manifest.json.
(There might be a white list to restrict the access to fileManagerPrivate).

Yuli, could you try chrome.fileManagerPrivate.executeTask() to see if it can opens gallery/video player?

Status: WontFix (was: Assigned)
Used fileManagerPrivate instead.

Sign in to add a comment