Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: chrome/browser/safe_browsing/bloom_filter.cc

Issue 9349005: net: Rename FileStream::Open/Close with OpenSync/CloseSync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/sessions/session_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/sessions/session_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698