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

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

Issue 470323003: [fsp] Improve performance for reading small chunks of data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 3 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/copy_or_move_operation_delegate.cc
diff --git a/storage/browser/fileapi/copy_or_move_operation_delegate.cc b/storage/browser/fileapi/copy_or_move_operation_delegate.cc
index 84244dfced5e0508e8cce582ed0d36d51ac56905..10a7ab8fe27984f2c84159b33db90a9698f85db6 100644
--- a/storage/browser/fileapi/copy_or_move_operation_delegate.cc
+++ b/storage/browser/fileapi/copy_or_move_operation_delegate.cc
@@ -818,7 +818,7 @@ void CopyOrMoveOperationDelegate::ProcessFile(
if (!validator_factory) {
scoped_ptr<storage::FileStreamReader> reader =
file_system_context()->CreateFileStreamReader(
- src_url, 0, base::Time());
+ src_url, 0 /* offset */, storage::kMaximumLength, base::Time());
scoped_ptr<FileStreamWriter> writer =
file_system_context()->CreateFileStreamWriter(dest_url, 0);
if (reader && writer) {

Powered by Google App Engine
This is Rietveld 408576698