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

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

Issue 1148383003: Only support seeking file streams from the beginning of the file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Win DBG build by Pass()-ing file out of CreateForAsyncHandle. Created 5 years, 6 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 | « storage/browser/fileapi/local_file_stream_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/local_file_stream_writer.cc
diff --git a/storage/browser/fileapi/local_file_stream_writer.cc b/storage/browser/fileapi/local_file_stream_writer.cc
index 71c6bfbbb04c8f41ce9f587f2588747cdd2d0723..72eb6cd1de46d04a9f5dee155c0d58e412136db3 100644
--- a/storage/browser/fileapi/local_file_stream_writer.cc
+++ b/storage/browser/fileapi/local_file_stream_writer.cc
@@ -152,11 +152,10 @@ void LocalFileStreamWriter::InitiateSeek(
return;
}
- int result = stream_impl_->Seek(base::File::FROM_BEGIN, initial_offset_,
- base::Bind(&LocalFileStreamWriter::DidSeek,
- weak_factory_.GetWeakPtr(),
- error_callback,
- main_operation));
+ int result = stream_impl_->Seek(
+ initial_offset_,
+ base::Bind(&LocalFileStreamWriter::DidSeek, weak_factory_.GetWeakPtr(),
+ error_callback, main_operation));
if (result != net::ERR_IO_PENDING) {
has_pending_operation_ = false;
error_callback.Run(result);
« no previous file with comments | « storage/browser/fileapi/local_file_stream_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698