| Index: chrome/browser/safe_browsing/bloom_filter.cc
|
| diff --git a/chrome/browser/safe_browsing/bloom_filter.cc b/chrome/browser/safe_browsing/bloom_filter.cc
|
| index c21c1c06a343179a351778338a126a7cbd79bd23..6f928b557f5effbba6e150ecc27f1b98a9e18da2 100644
|
| --- a/chrome/browser/safe_browsing/bloom_filter.cc
|
| +++ b/chrome/browser/safe_browsing/bloom_filter.cc
|
| @@ -90,9 +90,9 @@ bool BloomFilter::Exists(SBPrefix hash) const {
|
| BloomFilter* BloomFilter::LoadFile(const FilePath& filter_name) {
|
| net::FileStream filter(NULL);
|
|
|
| - if (filter.Open(filter_name,
|
| - base::PLATFORM_FILE_OPEN |
|
| - base::PLATFORM_FILE_READ) != net::OK) {
|
| + if (filter.OpenSync(filter_name,
|
| + base::PLATFORM_FILE_OPEN |
|
| + base::PLATFORM_FILE_READ) != net::OK) {
|
| RecordFailure(FAILURE_FILTER_READ_OPEN);
|
| return NULL;
|
| }
|
| @@ -156,9 +156,9 @@ BloomFilter* BloomFilter::LoadFile(const FilePath& filter_name) {
|
| bool BloomFilter::WriteFile(const FilePath& filter_name) const {
|
| net::FileStream filter(NULL);
|
|
|
| - if (filter.Open(filter_name,
|
| - base::PLATFORM_FILE_WRITE |
|
| - base::PLATFORM_FILE_CREATE_ALWAYS) != net::OK)
|
| + if (filter.OpenSync(filter_name,
|
| + base::PLATFORM_FILE_WRITE |
|
| + base::PLATFORM_FILE_CREATE_ALWAYS) != net::OK)
|
| return false;
|
|
|
| // Write the version information.
|
|
|