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

Unified Diff: net/cookies/cookie_util.cc

Issue 13979002: Add support for split PSL list distinctions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added const modifiers 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
Index: net/cookies/cookie_util.cc
diff --git a/net/cookies/cookie_util.cc b/net/cookies/cookie_util.cc
index 908c8586022a55317f9b086356fe1ed5d9afe9b9..859c0f0397878ad2d061dbcda8cf258b7f93668f 100644
--- a/net/cookies/cookie_util.cc
+++ b/net/cookies/cookie_util.cc
@@ -25,7 +25,8 @@ 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);
+ return registry_controlled_domains::GetDomainAndRegistry(
+ host, net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
if (!DomainIsHostOnly(host))
return host.substr(1);

Powered by Google App Engine
This is Rietveld 408576698