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

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: revise test cases to be correct 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 a6b9f16bb9a2cd6c08fa81779b934072e709fd53..c0ef557b6785214fc4a5900ac07808c413201eb2 100644
--- a/components/omnibox/history_quick_provider.cc
+++ b/components/omnibox/history_quick_provider.cc
@@ -263,8 +263,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