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

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

Issue 9349005: net: Rename FileStream::Open/Close with OpenSync/CloseSync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 10 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 | « chrome/common/zip_reader.cc ('k') | content/browser/download/base_file_unittest.cc » ('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 74e9b95595be9d03e6db2046d1575bd5bf5546c9..51ff531af478de327c9dd2ad34929cbd87230a83 100644
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -502,7 +502,7 @@ net::Error BaseFile::Open() {
if (!file_stream_.get()) {
CreateFileStream();
file_stream_->EnableErrorStatistics();
- int open_result = file_stream_->Open(
+ int open_result = file_stream_->OpenSync(
full_path_,
base::PLATFORM_FILE_OPEN_ALWAYS | base::PLATFORM_FILE_WRITE);
if (open_result != net::OK)
@@ -535,7 +535,7 @@ void BaseFile::Close() {
// theres not much we can do. But we might in the future.
file_stream_->Flush();
#endif
- file_stream_->Close();
+ file_stream_->CloseSync();
ClearStream(net::OK);
}
}
« no previous file with comments | « chrome/common/zip_reader.cc ('k') | content/browser/download/base_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698