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

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

Issue 2446273004: Reduce buggy usage of the registry controlled domain service. (Closed)
Patch Set: Review comment 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..a39d823b81e7648e00519e97eefbb15f40e46449 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::GetCanonicalHostRegistryLength(
canonicalized_url->host(),
net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | components/omnibox/browser/history_quick_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698