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

Unified Diff: webkit/browser/fileapi/file_system_operation_runner.cc

Issue 264993002: [FileAPI] Remove Flush() on write completion on SandboxFileSystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « webkit/browser/fileapi/file_system_context.cc ('k') | webkit/browser/fileapi/file_writer_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/file_system_operation_runner.cc
diff --git a/webkit/browser/fileapi/file_system_operation_runner.cc b/webkit/browser/fileapi/file_system_operation_runner.cc
index aa4c43534200b1981b92adb0c2071717102f6e3f..4674cf86e879b66c37752d6b3c662eb6ca510b56 100644
--- a/webkit/browser/fileapi/file_system_operation_runner.cc
+++ b/webkit/browser/fileapi/file_system_operation_runner.cc
@@ -260,8 +260,12 @@ OperationID FileSystemOperationRunner::Write(
return handle.id;
}
+ FileWriterDelegate::FlushPolicy flush_policy =
+ file_system_context_->ShouldFlushOnWriteCompletion(url.type())
+ ? FileWriterDelegate::FLUSH_ON_COMPLETION
+ : FileWriterDelegate::NO_FLUSH_ON_COMPLETION;
scoped_ptr<FileWriterDelegate> writer_delegate(
- new FileWriterDelegate(writer.Pass()));
+ new FileWriterDelegate(writer.Pass(), flush_policy));
scoped_ptr<net::URLRequest> blob_request(
webkit_blob::BlobProtocolHandler::CreateBlobRequest(
« no previous file with comments | « webkit/browser/fileapi/file_system_context.cc ('k') | webkit/browser/fileapi/file_writer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698