summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
authormtomasz <mtomasz@chromium.org>2014-09-01 06:52:10 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-01 13:53:58 +0000
commit8cba4967ecfc5edbc0534964c940af9887582dbc (patch)
tree66513345f8a12a988a425f0a9fd02277a58a8959 /chrome/common/extensions
parent5750a97fd179642548e6add77aafc1cdb0eec7e8 (diff)
downloadchromium_src-8cba4967ecfc5edbc0534964c940af9887582dbc.zip
chromium_src-8cba4967ecfc5edbc0534964c940af9887582dbc.tar.gz
chromium_src-8cba4967ecfc5edbc0534964c940af9887582dbc.tar.bz2
[fsp] Remove the exclusive field from the CreateDirectory operation.
Analogically to CreateFile, we should just return an EXISTS error code if the entry already exists. The EXISTS error code is later converted to OK if the operation was requested to be not 'exclusive'. TBR=benwells@chromium.org TEST=browser_tests, unit_tests: *FileSystemProvider*CreateDirectory* BUG=393141 Review URL: https://codereview.chromium.org/528683002 Cr-Commit-Position: refs/heads/master@{#292873}
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r--chrome/common/extensions/api/file_system_provider.idl9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl
index bbc6bc6..a41ddd1 100644
--- a/chrome/common/extensions/api/file_system_provider.idl
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -128,7 +128,6 @@ namespace fileSystemProvider {
DOMString fileSystemId;
long requestId;
DOMString directoryPath;
- boolean exclusive;
boolean recursive;
};
@@ -303,10 +302,10 @@ namespace fileSystemProvider {
FileDataCallback successCallback,
ProviderErrorCallback errorCallback);
- // Raised when creating a directory is requested. If <code>exclusive</code>
- // is set to true, then the operation must fail if the target directory
- // already exists. If <code>recursive</code> is true, then all of the
- // missing directories on the directory path must be created.
+ // Raised when creating a directory is requested. The operation must fail
+ // with the EXISTS error if the target directory already exists.
+ // If <code>recursive</code> is true, then all of the missing directories
+ // on the directory path must be created.
[maxListeners=1, nodoc] static void onCreateDirectoryRequested(
CreateDirectoryRequestedOptions options,
ProviderSuccessCallback successCallback,