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

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

Issue 13979002: Add support for split PSL list distinctions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed chrome_frame compilation issue Created 7 years, 8 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..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;

Powered by Google App Engine
This is Rietveld 408576698