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

Unified Diff: chrome/browser/chromeos/drive/local_file_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 | « base/files/file.cc ('k') | chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/local_file_reader.cc
diff --git a/chrome/browser/chromeos/drive/local_file_reader.cc b/chrome/browser/chromeos/drive/local_file_reader.cc
index b1ff64d73b99273f95e2d435d812202fb860f910..ca2dfa2f87639b04e708b254c763f38549535615 100644
--- a/chrome/browser/chromeos/drive/local_file_reader.cc
+++ b/chrome/browser/chromeos/drive/local_file_reader.cc
@@ -52,10 +52,9 @@ void LocalFileReader::DidOpen(const net::CompletionCallback& callback,
if (error != net::OK)
return callback.Run(error);
- int rv = file_stream_.Seek(base::File::FROM_BEGIN, offset,
- Bind(&LocalFileReader::DidSeek,
- weak_ptr_factory_.GetWeakPtr(),
- callback, offset));
+ int rv = file_stream_.Seek(
+ offset, Bind(&LocalFileReader::DidSeek, weak_ptr_factory_.GetWeakPtr(),
+ callback, offset));
DCHECK_EQ(rv, net::ERR_IO_PENDING);
}
« no previous file with comments | « base/files/file.cc ('k') | chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698