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

Unified Diff: content/browser/download/base_file.cc

Issue 9949011: Make FileStream::Seek async and add FileStream::SeekSync for sync operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 8 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 | « no previous file | net/base/completion_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file.cc
diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
index 456454814c1427c9f15f78cc6ae197cb53c121c1..5c27adeb3dd42c9f481e715d5665e0ba4dfd84ac 100644
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -510,7 +510,7 @@ net::Error BaseFile::Open() {
// We may be re-opening the file after rename. Always make sure we're
// writing at the end of the file.
- int64 seek_result = file_stream_->Seek(net::FROM_END, 0);
+ int64 seek_result = file_stream_->SeekSync(net::FROM_END, 0);
if (seek_result < 0)
return ClearStream(LOG_ERROR("Seek", seek_result));
} else {
« no previous file with comments | « no previous file | net/base/completion_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698