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..f0e250dcdc68e4a7f9256d5985182be2e5a8fa8b 100644 |
--- a/components/search_engines/template_url_service.cc |
+++ b/components/search_engines/template_url_service.cc |
@@ -153,8 +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), |
+ return net::registry_controlled_domains::PermissiveGetHostRegistryLength( |
+ host, |
net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES, |
net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES); |
} |