Index: chrome/common/zip_reader.cc |
diff --git a/chrome/common/zip_reader.cc b/chrome/common/zip_reader.cc |
index 60fba5e1421519231822f0d8cb46c5b91499ed0c..c89ce29b7efe6eeb98c6fed14b03c0366ea3dbce 100644 |
--- a/chrome/common/zip_reader.cc |
+++ b/chrome/common/zip_reader.cc |
@@ -193,7 +193,7 @@ bool ZipReader::ExtractCurrentEntryToFilePath( |
net::FileStream stream(NULL); |
const int flags = (base::PLATFORM_FILE_CREATE_ALWAYS | |
base::PLATFORM_FILE_WRITE); |
- if (stream.Open(output_file_path, flags) != 0) |
+ if (stream.OpenSync(output_file_path, flags) != 0) |
return false; |
bool success = true; // This becomes false when something bad happens. |
@@ -218,7 +218,7 @@ bool ZipReader::ExtractCurrentEntryToFilePath( |
} |
} |
- stream.Close(); |
+ stream.CloseSync(); |
unzCloseCurrentFile(zip_file_); |
return success; |
} |