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..e6b626e169a303c606da165e9863515dcff72a39 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) { |
+ 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); |
+ if (registry_length == 0) { |
// Known intranet hosts get one score. |
url_what_you_typed_match_score = |
HistoryURLProvider::kScoreForUnvisitedIntranetResult; |