Index: content/browser/download/drag_download_util.cc |
diff --git a/content/browser/download/drag_download_util.cc b/content/browser/download/drag_download_util.cc |
index ed781bbb97192cdbcd12b756e59790e3bff92eb3..5f3f194a2a6a475a855ced6155f976416a905b95 100644 |
--- a/content/browser/download/drag_download_util.cc |
+++ b/content/browser/download/drag_download_util.cc |
@@ -80,7 +80,7 @@ FileStream* CreateFileStreamForDrop(FilePath* file_path) { |
// Explicitly (and redundantly check) for file -- despite the fact that our |
// open won't overwrite -- just to avoid log spew. |
if (!file_util::PathExists(new_file_path) && |
- file_stream->Open(new_file_path, base::PLATFORM_FILE_CREATE | |
+ file_stream->OpenSync(new_file_path, base::PLATFORM_FILE_CREATE | |
base::PLATFORM_FILE_WRITE) == net::OK) { |
*file_path = new_file_path; |
return file_stream.release(); |