| Index: chrome/browser/autocomplete/history_url_provider.cc
|
| diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
|
| index 985509555da347f4eba4daf6dab2fe3c713390e7..52eebe2aa9f1fc2f5e9dc706ca135b4597bb03c8 100644
|
| --- a/chrome/browser/autocomplete/history_url_provider.cc
|
| +++ b/chrome/browser/autocomplete/history_url_provider.cc
|
| @@ -795,8 +795,12 @@ bool HistoryURLProvider::CanFindIntranetURL(
|
| return false;
|
| const std::string host(UTF16ToUTF8(
|
| input.text().substr(input.parts().host.begin, input.parts().host.len)));
|
| - return (net::RegistryControlledDomainService::GetRegistryLength(host,
|
| - false) == 0) && db->IsTypedHost(host);
|
| + const size_t registry_length =
|
| + net::registry_controlled_domains::GetRegistryLength(
|
| + host,
|
| + net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| + net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
| + return registry_length == 0 && db->IsTypedHost(host);
|
| }
|
|
|
| bool HistoryURLProvider::PromoteMatchForInlineAutocomplete(
|
|
|