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

Unified Diff: storage/browser/fileapi/sandbox_file_stream_writer.cc

Issue 942633004: IndexedDB: Fixed support for empty blobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted CREATE_NEW_FILE. Creating file before using FileStreamWriter. Created 5 years, 10 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
Index: storage/browser/fileapi/sandbox_file_stream_writer.cc
diff --git a/storage/browser/fileapi/sandbox_file_stream_writer.cc b/storage/browser/fileapi/sandbox_file_stream_writer.cc
index 27e363f371afd6bbbf44117399e66e76a3d8d864..975fc29e342b35993b875cf7d5e1483a6bbd8876 100644
--- a/storage/browser/fileapi/sandbox_file_stream_writer.cc
+++ b/storage/browser/fileapi/sandbox_file_stream_writer.cc
@@ -137,10 +137,8 @@ void SandboxFileStreamWriter::DidCreateSnapshotFile(
}
DCHECK(!local_file_writer_.get());
local_file_writer_.reset(FileStreamWriter::CreateForLocalFile(
- file_system_context_->default_file_task_runner(),
- platform_path,
- initial_offset_,
- FileStreamWriter::OPEN_EXISTING_FILE));
+ file_system_context_->default_file_task_runner(), platform_path,
+ initial_offset_));
storage::QuotaManagerProxy* quota_manager_proxy =
file_system_context_->quota_manager_proxy();

Powered by Google App Engine
This is Rietveld 408576698