summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/zip.cc2
-rw-r--r--chrome/common/zip_reader.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/zip.cc b/chrome/common/zip.cc
index 1da9cff..a5635c0 100644
--- a/chrome/common/zip.cc
+++ b/chrome/common/zip.cc
@@ -20,7 +20,7 @@ namespace {
bool AddFileToZip(zipFile zip_file, const FilePath& src_dir) {
net::FileStream stream(NULL);
int flags = base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ;
- if (stream.OpenSync(src_dir, flags) != 0) {
+ if (stream.Open(src_dir, flags) != 0) {
DLOG(ERROR) << "Could not open stream for path "
<< src_dir.value();
return false;
diff --git a/chrome/common/zip_reader.cc b/chrome/common/zip_reader.cc
index c89ce29..60fba5e 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.OpenSync(output_file_path, flags) != 0)
+ if (stream.Open(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.CloseSync();
+ stream.Close();
unzCloseCurrentFile(zip_file_);
return success;
}