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

Unified Diff: chrome/browser/autocomplete/history_url_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_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(

Powered by Google App Engine
This is Rietveld 408576698