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

Unified Diff: chrome/browser/autocomplete/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: new approach Created 5 years, 8 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: chrome/browser/autocomplete/history_quick_provider.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc
index 68cd805af91c950a9f5f13a6dfd9cf22509c1c02..305beb41948012efca9582dfb5a43d848a2412ca 100644
--- a/chrome/browser/autocomplete/history_quick_provider.cc
+++ b/chrome/browser/autocomplete/history_quick_provider.cc
@@ -274,6 +274,7 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
}
match.EnsureUWYTIsAllowedToBeDefault(
autocomplete_input_.canonicalized_url(),
+ autocomplete_input_.parts().scheme.is_nonempty(),
TemplateURLServiceFactory::GetForProfile(profile_));
// Format the description autocomplete presentation.
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_url_provider_unittest.cc » ('j') | components/omnibox/autocomplete_match.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698