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

Unified Diff: components/omnibox/history_quick_provider.cc

Issue 1098843004: Omnibox - Do Not Allow HTTP/HTTPS Equivalence if User Explicitly Entered A Scheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use StartsWithASCII Created 5 years, 6 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/history_quick_provider.cc
diff --git a/components/omnibox/history_quick_provider.cc b/components/omnibox/history_quick_provider.cc
index 40037b11d716019f5133b048f546898cc2675257..09954276868af21cdb271b763c997f0d6b64ee0f 100644
--- a/components/omnibox/history_quick_provider.cc
+++ b/components/omnibox/history_quick_provider.cc
@@ -265,8 +265,9 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
match.allowed_to_be_default_match = match.inline_autocompletion.empty() ||
!PreventInlineAutocomplete(autocomplete_input_);
}
- match.EnsureUWYTIsAllowedToBeDefault(autocomplete_input_.canonicalized_url(),
- client()->GetTemplateURLService());
+ match.EnsureUWYTIsAllowedToBeDefault(
+ autocomplete_input_,
+ client()->GetTemplateURLService());
// Format the description autocomplete presentation.
match.description = info.title();

Powered by Google App Engine
This is Rietveld 408576698