diff options
author | mtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-24 10:31:12 +0000 |
---|---|---|
committer | mtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-24 10:31:12 +0000 |
commit | ac6260e21382d04d4125f3616f8d001ece27825b (patch) | |
tree | 95b999b2e974c28f7d34cb5b6540b0d336939bb1 /chrome/common | |
parent | 83a52d03adb00524bacf706ac32061b06b64a860 (diff) | |
download | chromium_src-ac6260e21382d04d4125f3616f8d001ece27825b.zip chromium_src-ac6260e21382d04d4125f3616f8d001ece27825b.tar.gz chromium_src-ac6260e21382d04d4125f3616f8d001ece27825b.tar.bz2 |
Request the sharing url on demand in Files.app.
This patch introduces a private api method to fetch the sharing url on demand instead of using the cached one. The caches link may become stale and consumes cache. In the future this will be removed in favor of generating the share url.
TEST=Files.app's share dialog should work. However, please wait until backend changes are pushed to prod. Whould happen in 2 weeks.
BUG=141396, 261025
Review URL: https://chromiumcodereview.appspot.com/19928002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/file_browser_private.json | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/file_browser_private.json b/chrome/common/extensions/api/file_browser_private.json index feb610d..003f8a9 100644 --- a/chrome/common/extensions/api/file_browser_private.json +++ b/chrome/common/extensions/api/file_browser_private.json @@ -1162,13 +1162,35 @@ "type": "function", "parameters": [ { - "name" : "accessToken", + "name": "accessToken", "type": "string", "description": "OAuth2 access token, or an empty string if failed to fetch." } ] } ] + }, + { + "name": "getShareUrl", + "description": "Requests a share dialog url for the specified file.", + "parameters": [ + { + "name": "url", + "type": "string", + "description": "Url for the file." + }, + { + "name": "callback", + "type": "function", + "parameters": [ + { + "name": "shareUrl", + "type": "string", + "description": "Share Url for the sharing dialog." + } + ] + } + ] } ], "events": [ |