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

Unified Diff: chrome/browser/net/url_fixer_upper.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
Index: chrome/browser/net/url_fixer_upper.cc
diff --git a/chrome/browser/net/url_fixer_upper.cc b/chrome/browser/net/url_fixer_upper.cc
index e965be8ef057d2469bae8152eabf06b7516b7b1e..f941c4b47e5cf79625798005ad7e632a2dfebf17 100644
--- a/chrome/browser/net/url_fixer_upper.cc
+++ b/chrome/browser/net/url_fixer_upper.cc
@@ -195,7 +195,10 @@ void AddDesiredTLD(const std::string& desired_tld, std::string* domain) {
// users can input "mail.yahoo" and hit ctrl-enter to get
// "www.mail.yahoo.com".
const size_t registry_length =
- net::RegistryControlledDomainService::GetRegistryLength(*domain, false);
+ net::registry_controlled_domains::GetRegistryLength(
+ *domain,
+ net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
+ net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
if ((registry_length != 0) && (registry_length != std::string::npos))
return;
« no previous file with comments | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/predictors/logged_in_predictor_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698