| Index: components/omnibox/browser/history_url_provider.cc
|
| diff --git a/components/omnibox/browser/history_url_provider.cc b/components/omnibox/browser/history_url_provider.cc
|
| index 4d19ac012000ef08063e7d0092c1de1bc63ec955..433c8d1c9a54fd4839979df031aafc9f92d66bfe 100644
|
| --- a/components/omnibox/browser/history_url_provider.cc
|
| +++ b/components/omnibox/browser/history_url_provider.cc
|
| @@ -982,12 +982,11 @@ bool HistoryURLProvider::CanFindIntranetURL(
|
| return false;
|
| const std::string host(base::UTF16ToUTF8(
|
| input.text().substr(input.parts().host.begin, input.parts().host.len)));
|
| - const size_t registry_length =
|
| - net::registry_controlled_domains::GetRegistryLength(
|
| - host,
|
| - net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| + const bool has_registry_domain =
|
| + net::registry_controlled_domains::HostHasRegistryControlledDomain(
|
| + host, net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
| - return registry_length == 0 && db->IsTypedHost(host);
|
| + return !has_registry_domain && db->IsTypedHost(host);
|
| }
|
|
|
| bool HistoryURLProvider::PromoteOrCreateShorterSuggestion(
|
|
|