diff options
author | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 04:48:31 +0000 |
---|---|---|
committer | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 04:48:31 +0000 |
commit | d47048b6fc87d531ca57ff2361db8fcb1425d46a (patch) | |
tree | 022bc1c4ed05c59008a3b97a9250615320b52964 /chrome/common/extensions/api/file_browser_handler.json | |
parent | 5784e4490e8d63e65497597a1acdc2ce1b420c6f (diff) | |
download | chromium_src-d47048b6fc87d531ca57ff2361db8fcb1425d46a.zip chromium_src-d47048b6fc87d531ca57ff2361db8fcb1425d46a.tar.gz chromium_src-d47048b6fc87d531ca57ff2361db8fcb1425d46a.tar.bz2 |
Add support for drive files to chrome.fileBrowserHandler.selectFile
first, we don't create file on disk when it is selected anymore (since we can't really know exact file path for drive files), we just setup permissions for the file.
second, we have to give read permissions for drive cache paths as well in order to enable file reading.
TEST=existing
BUG=138089
Review URL: https://chromiumcodereview.appspot.com/10664002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/file_browser_handler.json')
-rw-r--r-- | chrome/common/extensions/api/file_browser_handler.json | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/extensions/api/file_browser_handler.json b/chrome/common/extensions/api/file_browser_handler.json index 65209fd..a50c2f5 100644 --- a/chrome/common/extensions/api/file_browser_handler.json +++ b/chrome/common/extensions/api/file_browser_handler.json @@ -50,16 +50,16 @@ { "name": "selectFile", "type": "function", - "description": "Prompts user to select file path under which a new file will be created. When the user selects file, the file gets created or, if it already existed, truncated. The function has to be called with a user gesture.", + "description": "Prompts user to select file path under which file should be saved. When the file is selected, file access permission required to use the file (read, write and create) are granted to the caller. The file will not actually get created during the functin call, so function caller must ensure its existance before using it. The function has to be invoked with a user gesture.", "parameters": [ { "name": "selectionParams", "type": "object", - "description": "Parameters that will be used to create a new file.", + "description": "Parameters that will be used while selecting the file.", "properties": { "suggestedName": { "type": "string", - "description": "Suggested name for the new file." + "description": "Suggested name for the file." } } }, @@ -75,7 +75,7 @@ "properties": { "success": { "type": "boolean", - "description": "Has the file been selected." + "description": "Whether the file has been selected." }, "entry": { "type": "object", |