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

Unified Diff: chrome/browser/privacy_blacklist/blacklist.h

Issue 173357: Error diagnostics for Blacklist IO... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/privacy_blacklist/blacklist.h
===================================================================
--- chrome/browser/privacy_blacklist/blacklist.h (revision 25875)
+++ chrome/browser/privacy_blacklist/blacklist.h (working copy)
@@ -158,6 +158,9 @@
// caller.
Match* findMatch(const GURL&) const;
+ // Returns true if the blacklist object is in good health.
+ bool is_good() const { return is_good_; }
+
// Helper to remove cookies from a header.
static std::string StripCookies(const std::string&);
@@ -173,6 +176,8 @@
std::vector<Entry*> blacklist_;
std::vector<Provider*> providers_;
+ bool is_good_; // True if the blacklist was read successfully.
+
FRIEND_TEST(BlacklistTest, Generic);
FRIEND_TEST(BlacklistTest, PatternMatch);
DISALLOW_COPY_AND_ASSIGN(Blacklist);

Powered by Google App Engine
This is Rietveld 408576698