diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/base/sdch_manager.cc | 4 | ||||
-rw-r--r-- | net/base/sdch_manager.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc index 8b71a04..d11eea0 100644 --- a/net/base/sdch_manager.cc +++ b/net/base/sdch_manager.cc @@ -88,11 +88,11 @@ const bool SdchManager::IsInSupportedDomain(const GURL& url) const { return true; std::string domain = StringToLowerASCII(url.host()); - bool was_blacklisted(blacklisted_domains_.end() == + bool was_blacklisted(blacklisted_domains_.end() != blacklisted_domains_.find(domain)); if (was_blacklisted) SdchErrorRecovery(DOMAIN_BLACKLIST_INCLUDES_TARGET); - return was_blacklisted; + return !was_blacklisted; } bool SdchManager::CanFetchDictionary(const GURL& referring_url, diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h index 15d0bbf..1694318 100644 --- a/net/base/sdch_manager.h +++ b/net/base/sdch_manager.h @@ -108,7 +108,8 @@ class SdchManager { SDCH_CONTENT_ENCODE_FOR_NON_SDCH_REQUEST = 51, // Dictionary manager issues. - DOMAIN_BLACKLIST_INCLUDES_TARGET = 60, + PLEASE_IGNORE_THIS_ENUM = 60, // Erroneous use in Version 1.0 of Chrome. + DOMAIN_BLACKLIST_INCLUDES_TARGET = 61, MAX_PROBLEM_CODE // Used to bound histogram. |