Index: content/browser/site_instance_impl.cc |
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc |
index 3a93f25c9fa5de8db5c3b77772fed47daedd22bd..31b257903c9b42a13c9377f773adf5869cb78698 100644 |
--- a/content/browser/site_instance_impl.cc |
+++ b/content/browser/site_instance_impl.cc |
@@ -265,7 +265,8 @@ bool SiteInstance::IsSameWebSite(BrowserContext* browser_context, |
if (url1.scheme() != url2.scheme()) |
return false; |
- return net::RegistryControlledDomainService::SameDomainOrHost(url1, url2); |
+ return net::RegistryControlledDomainService::SameDomainOrHost(url1, url2, |
+ net::RCDS::EXCLUDE_PRIVATE_REGISTRIES); |
} |
/*static*/ |
@@ -298,7 +299,8 @@ GURL SiteInstance::GetSiteForURL(BrowserContext* browser_context, |
// If this URL has a registered domain, we only want to remember that part. |
std::string domain = |
- net::RegistryControlledDomainService::GetDomainAndRegistry(url); |
+ net::RegistryControlledDomainService::GetDomainAndRegistry(url, |
+ net::RCDS::EXCLUDE_PRIVATE_REGISTRIES); |
if (!domain.empty()) { |
GURL::Replacements rep; |
rep.SetHostStr(domain); |