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

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

Issue 9288084: Added Net logging to FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up year on licence text. Created 8 years, 11 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
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 b734009517998898adc88fb3a9d33d6b4df4e3e6..c21c1c06a343179a351778338a126a7cbd79bd23 100644
--- a/chrome/browser/safe_browsing/bloom_filter.cc
+++ b/chrome/browser/safe_browsing/bloom_filter.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -88,7 +88,7 @@ bool BloomFilter::Exists(SBPrefix hash) const {
// static.
BloomFilter* BloomFilter::LoadFile(const FilePath& filter_name) {
- net::FileStream filter;
+ net::FileStream filter(NULL);
if (filter.Open(filter_name,
base::PLATFORM_FILE_OPEN |
@@ -154,7 +154,7 @@ BloomFilter* BloomFilter::LoadFile(const FilePath& filter_name) {
}
bool BloomFilter::WriteFile(const FilePath& filter_name) const {
- net::FileStream filter;
+ net::FileStream filter(NULL);
if (filter.Open(filter_name,
base::PLATFORM_FILE_WRITE |

Powered by Google App Engine
This is Rietveld 408576698