diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-17 21:27:22 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-17 21:27:22 +0000 |
commit | cef87438fe8dbdb000db143e72f99ba374f12d37 (patch) | |
tree | e0802a0547856785f571135b79cb98e09df06971 /net | |
parent | e03f47301da8395a35913c65a9284621ad8c2eee (diff) | |
download | chromium_src-cef87438fe8dbdb000db143e72f99ba374f12d37.zip chromium_src-cef87438fe8dbdb000db143e72f99ba374f12d37.tar.gz chromium_src-cef87438fe8dbdb000db143e72f99ba374f12d37.tar.bz2 |
Correct typo in SDCH problem logging code.
r=openvcdiff,huanr
Review URL: http://codereview.chromium.org/14802
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7162 0039d316-1c4b-4281-b951-d872f2087c98
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. |