summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation.cc
diff options
context:
space:
mode:
authorericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 19:47:21 +0000
committerericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 19:47:21 +0000
commit03d6eba883391c16eb21427355d5dc548fcbf3e8 (patch)
tree25bf25e08e452f305cd372aaccb372a19ee9398a /webkit/fileapi/file_system_operation.cc
parentcb37d4830e2ab67e9151bba115bf05c11cf1da42 (diff)
downloadchromium_src-03d6eba883391c16eb21427355d5dc548fcbf3e8.zip
chromium_src-03d6eba883391c16eb21427355d5dc548fcbf3e8.tar.gz
chromium_src-03d6eba883391c16eb21427355d5dc548fcbf3e8.tar.bz2
Switch FileSystemOperation::Write back to using FileUtilProxy::CreateOrOpen, which returns a file handle, instead of FileUtilProxy::Create, which doesn't.
BUG=59073 TEST=tests are currently disabled until the TestShell implementation goes in, but you can try WebKit/LayoutTests/fast/filesystem/file-writer-gc-blob.html in Chromium with --enable-file-system. Review URL: http://codereview.chromium.org/3758002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62436 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation.cc')
-rw-r--r--webkit/fileapi/file_system_operation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index e15de4c..6a88b6f 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -145,7 +145,7 @@ void FileSystemOperation::Write(
file_writer_delegate_.reset(new FileWriterDelegate(this, offset));
blob_request_.reset(new URLRequest(blob_url, file_writer_delegate_.get()));
blob_request_->set_context(url_request_context);
- base::FileUtilProxy::Create(
+ base::FileUtilProxy::CreateOrOpen(
proxy_,
path,
base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_WRITE |