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

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: fix browsertests compile error (sigh) 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
« no previous file with comments | « components/omnibox/autocomplete_result_unittest.cc ('k') | components/omnibox/search_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bf18b401479bdc2a4f8d1ab9f7e209ba0bd9c8f4 100644
--- a/components/omnibox/history_quick_provider.cc
+++ b/components/omnibox/history_quick_provider.cc
@@ -263,8 +263,10 @@ 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()->GetAcceptLanguages(),
+ client()->GetTemplateURLService());
// Format the description autocomplete presentation.
match.description = info.title();
« no previous file with comments | « components/omnibox/autocomplete_result_unittest.cc ('k') | components/omnibox/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698