summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation.cc
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 22:57:58 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 22:57:58 +0000
commit3bf73d5ec779ce14a04a00d24d71a038fd954832 (patch)
tree2e004608e064b71f49a3e925b5209076b7a9abf2 /webkit/fileapi/file_system_operation.cc
parente01e7dc7572fd5e3115ad7624a75a5bc3c99cfac (diff)
downloadchromium_src-3bf73d5ec779ce14a04a00d24d71a038fd954832.zip
chromium_src-3bf73d5ec779ce14a04a00d24d71a038fd954832.tar.gz
chromium_src-3bf73d5ec779ce14a04a00d24d71a038fd954832.tar.bz2
Revive FileAPI's recursive CreateDirectory.
PPAPI's MakeDirectoryIncludingAncestors() (ppapi/cpp/dev/file_ref_dev.cc) uses recursive CreateDirectory. BUG=74841 TEST=none Review URL: http://codereview.chromium.org/6627028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation.cc')
-rw-r--r--webkit/fileapi/file_system_operation.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index ec3ea7e..0b800ba 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -71,12 +71,11 @@ void FileSystemOperation::CreateFile(const FilePath& path,
void FileSystemOperation::CreateDirectory(const FilePath& path,
bool exclusive,
- bool unused) {
+ bool recursive) {
#ifndef NDEBUG
DCHECK(kOperationNone == pending_operation_);
pending_operation_ = kOperationCreateDirectory;
#endif
- DCHECK(!unused);
if (!VerifyFileSystemPathForWrite(path, true /* create */)) {
delete this;
@@ -84,7 +83,7 @@ void FileSystemOperation::CreateDirectory(const FilePath& path,
}
FileSystemFileUtilProxy::CreateDirectory(
file_system_operation_context_,
- proxy_, path, exclusive, callback_factory_.NewCallback(
+ proxy_, path, exclusive, recursive, callback_factory_.NewCallback(
&FileSystemOperation::DidFinishFileOperation));
}