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

Unified Diff: net/cookies/cookie_util.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/cookies/cookie_monster.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_util.cc
diff --git a/net/cookies/cookie_util.cc b/net/cookies/cookie_util.cc
index 908c8586022a55317f9b086356fe1ed5d9afe9b9..fac473b2faedad4d85e604c8c30f6b2d2621982b 100644
--- a/net/cookies/cookie_util.cc
+++ b/net/cookies/cookie_util.cc
@@ -24,8 +24,10 @@ bool DomainIsHostOnly(const std::string& domain_string) {
std::string GetEffectiveDomain(const std::string& scheme,
const std::string& host) {
- if (scheme == "http" || scheme == "https")
- return RegistryControlledDomainService::GetDomainAndRegistry(host);
+ if (scheme == "http" || scheme == "https") {
+ return registry_controlled_domains::GetDomainAndRegistry(
+ host, net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
+ }
if (!DomainIsHostOnly(host))
return host.substr(1);
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698