| Index: chrome/browser/autocomplete/history_quick_provider.cc
|
| diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc
|
| index 20db5501cc06a29220ec46a496982ba75c5309ae..cc6fa7a9e26a27e74dc8c9edef6a1bce4aa5a351 100644
|
| --- a/chrome/browser/autocomplete/history_quick_provider.cc
|
| +++ b/chrome/browser/autocomplete/history_quick_provider.cc
|
| @@ -265,8 +265,12 @@ void HistoryQuickProvider::DoAutocomplete() {
|
| !autocomplete_input_.parts().ref.is_nonempty()) {
|
| // Not visited, but we've seen the host before.
|
| will_have_url_what_you_typed_match_first = true;
|
| - if (net::RegistryControlledDomainService::GetRegistryLength(
|
| - host, false) == 0) {
|
| + 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);
|
| + if (registry_length == 0) {
|
| // Known intranet hosts get one score.
|
| url_what_you_typed_match_score =
|
| HistoryURLProvider::kScoreForUnvisitedIntranetResult;
|
|
|