Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: chrome/browser/autocomplete/history_quick_provider.cc

Issue 15140003: Add support for split Public Suffix List distinctions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_input.cc ('k') | chrome/browser/autocomplete/history_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698