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

Unified Diff: components/omnibox/autocomplete_controller.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
Index: components/omnibox/autocomplete_controller.cc
diff --git a/components/omnibox/autocomplete_controller.cc b/components/omnibox/autocomplete_controller.cc
index c5f7f2b1d5aace16a7b114aad0e38706080ef11e..1a95519bcf9bb9dd39456cfbe40234294860bd78 100644
--- a/components/omnibox/autocomplete_controller.cc
+++ b/components/omnibox/autocomplete_controller.cc
@@ -407,7 +407,8 @@ void AutocompleteController::UpdateResult(
result_.AppendMatches(input_, (*i)->matches());
// Sort the matches and trim to a small number of "best" matches.
- result_.SortAndCull(input_, template_url_service_);
+ result_.SortAndCull(input_, provider_client_->GetAcceptLanguages(),
+ template_url_service_);
// Need to validate before invoking CopyOldMatches as the old matches are not
// valid against the current input.
@@ -418,7 +419,8 @@ void AutocompleteController::UpdateResult(
if (!done_) {
// This conditional needs to match the conditional in Start that invokes
// StartExpireTimer.
- result_.CopyOldMatches(input_, last_result, template_url_service_);
+ result_.CopyOldMatches(input_, provider_client_->GetAcceptLanguages(),
+ last_result, template_url_service_);
}
UpdateKeywordDescriptions(&result_);
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc ('k') | components/omnibox/autocomplete_input.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698