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

Unified Diff: components/omnibox/browser/autocomplete_controller.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 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
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | components/omnibox/browser/autocomplete_match.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/autocomplete_controller.cc
diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc
index 19be64e4f028381da1db02273df89b7138cb1dbd..7ccba89875ca16bbec693ff895dc589cd3355bb4 100644
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -424,8 +424,7 @@ void AutocompleteController::UpdateResult(
result_.AppendMatches(input_, (*i)->matches());
// Sort the matches and trim to a small number of "best" matches.
- result_.SortAndCull(input_, provider_client_->GetAcceptLanguages(),
- template_url_service_);
+ result_.SortAndCull(input_, template_url_service_);
// Need to validate before invoking CopyOldMatches as the old matches are not
// valid against the current input.
@@ -436,8 +435,7 @@ void AutocompleteController::UpdateResult(
if (!done_) {
// This conditional needs to match the conditional in Start that invokes
// StartExpireTimer.
- result_.CopyOldMatches(input_, provider_client_->GetAcceptLanguages(),
- last_result, template_url_service_);
+ result_.CopyOldMatches(input_, last_result, template_url_service_);
}
UpdateKeywordDescriptions(&result_);
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | components/omnibox/browser/autocomplete_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698