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

Unified Diff: net/cookies/cookie_monster.cc

Issue 15140003: Add support for split Public Suffix List distinctions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again Created 7 years, 7 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 | « net/base/static_cookie_policy.cc ('k') | net/cookies/cookie_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster.cc
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
index 832592a181b3d7934088ccb73b94bfc141c6d534..fea5e3b39c4650a6e25b389703e44b529ff83924 100644
--- a/net/cookies/cookie_monster.cc
+++ b/net/cookies/cookie_monster.cc
@@ -1961,7 +1961,7 @@ int CookieMonster::GarbageCollectDeleteRange(
return it_end - it_begin;
}
-// A wrapper around RegistryControlledDomainService::GetDomainAndRegistry
+// A wrapper around registry_controlled_domains::GetDomainAndRegistry
// to make clear we're creating a key for our local map. Here and
// in FindCookiesForHostAndDomain() are the only two places where
// we need to conditionalize based on key type.
@@ -1986,7 +1986,8 @@ int CookieMonster::GarbageCollectDeleteRange(
// non-problem).
std::string CookieMonster::GetKey(const std::string& domain) const {
std::string effective_domain(
- RegistryControlledDomainService::GetDomainAndRegistry(domain));
+ registry_controlled_domains::GetDomainAndRegistry(
+ domain, registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES));
if (effective_domain.empty())
effective_domain = domain;
« no previous file with comments | « net/base/static_cookie_policy.cc ('k') | net/cookies/cookie_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698