Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: trunk/src/content/child/fileapi/webfilesystem_impl.cc

Issue 22300004: Revert 215787 "Support synchronous mode in WebFileWriterImpl" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/content/child/fileapi/webfilewriter_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/child/fileapi/webfilesystem_impl.cc
===================================================================
--- trunk/src/content/child/fileapi/webfilesystem_impl.cc (revision 215792)
+++ trunk/src/content/child/fileapi/webfilesystem_impl.cc (working copy)
@@ -252,11 +252,8 @@
callbacks->didFail(WebKit::WebFileErrorInvalidState);
return;
}
- WebFileWriterImpl::Type type = callbacks->shouldBlockUntilCompletion() ?
- WebFileWriterImpl::TYPE_SYNC : WebFileWriterImpl::TYPE_ASYNC;
callbacks->didCreateFileWriter(
- new WebFileWriterImpl(path, client, type, main_thread_loop),
- file_info.size);
+ new WebFileWriterImpl(path, client, main_thread_loop), file_info.size);
}
void CreateFileWriterCallbackAdapter(
@@ -491,9 +488,7 @@
WebKit::WebFileWriter* WebFileSystemImpl::createFileWriter(
const WebURL& path, WebKit::WebFileWriterClient* client) {
- return new WebFileWriterImpl(GURL(path), client,
- WebFileWriterImpl::TYPE_ASYNC,
- main_thread_loop_.get());
+ return new WebFileWriterImpl(GURL(path), client, main_thread_loop_.get());
}
void WebFileSystemImpl::createFileWriter(
« no previous file with comments | « no previous file | trunk/src/content/child/fileapi/webfilewriter_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698