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

Unified Diff: storage/browser/fileapi/local_file_stream_reader.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 | « net/url_request/url_request_file_job.cc ('k') | storage/browser/fileapi/local_file_stream_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/local_file_stream_reader.cc
diff --git a/storage/browser/fileapi/local_file_stream_reader.cc b/storage/browser/fileapi/local_file_stream_reader.cc
index 90d4a461587768a318604447c0b1d56f821336d6..e8473eb7568e798438e839e4f30b12456f7229c4 100644
--- a/storage/browser/fileapi/local_file_stream_reader.cc
+++ b/storage/browser/fileapi/local_file_stream_reader.cc
@@ -106,10 +106,8 @@ void LocalFileStreamReader::DidOpenFileStream(
return;
}
result = stream_impl_->Seek(
- base::File::FROM_BEGIN, initial_offset_,
- base::Bind(&LocalFileStreamReader::DidSeekFileStream,
- weak_factory_.GetWeakPtr(),
- callback));
+ initial_offset_, base::Bind(&LocalFileStreamReader::DidSeekFileStream,
+ weak_factory_.GetWeakPtr(), callback));
if (result != net::ERR_IO_PENDING) {
callback.Run(result);
}
« no previous file with comments | « net/url_request/url_request_file_job.cc ('k') | storage/browser/fileapi/local_file_stream_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698