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 9ba153a4a3afd39e69547615eaa0328514fc3849..c86aab49ee872967b85fab9f7b42b3ea44af1887 100644 |
--- a/chrome/browser/autocomplete/history_url_provider.cc |
+++ b/chrome/browser/autocomplete/history_url_provider.cc |
@@ -797,8 +797,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); |
+ size_t registry_length = |
sky
2013/04/26 20:02:27
const
nyquist
2013/05/06 22:30:56
Done.
|
+ net::RegistryControlledDomainService::GetRegistryLength( |
+ host, |
+ net::RCDS::EXCLUDE_UNKNOWN_REGISTRIES, |
+ net::RCDS::EXCLUDE_PRIVATE_REGISTRIES); |
+ return registry_length == 0 && db->IsTypedHost(host); |
} |
bool HistoryURLProvider::PromoteMatchForInlineAutocomplete( |