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

Unified Diff: components/search_engines/template_url_service.cc

Issue 2433583002: Reduce buggy usage of the registry controlled domain service. (Closed)
Patch Set: Review comments Created 4 years, 2 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 | « components/omnibox/browser/history_url_provider.cc ('k') | components/ssl_errors/error_classification.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index ee12247b7e05e9ee6eb700c5464e914503b57d10..22e2db0b3fa16c320df785db633dc5f7ab4c8bfa 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -153,9 +153,8 @@ void LogDuplicatesHistogram(
// Returns the length of the registry portion of a hostname. For example,
// www.google.co.uk will return 5 (the length of co.uk).
size_t GetRegistryLength(const base::string16& host) {
- return net::registry_controlled_domains::GetRegistryLength(
- base::UTF16ToUTF8(host),
- net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
+ return net::registry_controlled_domains::PermissiveGetHostRegistryLength(
+ host, net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
}
« no previous file with comments | « components/omnibox/browser/history_url_provider.cc ('k') | components/ssl_errors/error_classification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698