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); |
} |
} |