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

Unified Diff: components/omnibox/browser/autocomplete_input.cc

Issue 2433583002: Reduce buggy usage of the registry controlled domain service. (Closed)
Patch Set: . Created 4 years, 2 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: components/omnibox/browser/autocomplete_input.cc
diff --git a/components/omnibox/browser/autocomplete_input.cc b/components/omnibox/browser/autocomplete_input.cc
index 26a8c7d0f34a1bb70d358f02d0ee768a68f2cf83..8e70d96d28d965b40b0c347a1aa96d04b373ea63 100644
--- a/components/omnibox/browser/autocomplete_input.cc
+++ b/components/omnibox/browser/autocomplete_input.cc
@@ -265,7 +265,7 @@ metrics::OmniboxInputType::Type AutocompleteInput::Parse(
// Check if the canonicalized host has a known TLD, which we'll want to know
// below.
const size_t registry_length =
- net::registry_controlled_domains::GetRegistryLength(
+ net::registry_controlled_domains::GetRegistryLengthForCanonicalHost(
canonicalized_url->host(),
net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);

Powered by Google App Engine
This is Rietveld 408576698