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

Unified Diff: components/omnibox/browser/shortcuts_provider.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
Index: components/omnibox/browser/shortcuts_provider.cc
diff --git a/components/omnibox/browser/shortcuts_provider.cc b/components/omnibox/browser/shortcuts_provider.cc
index 22ee0c71543b97dc00a86e9acc4582fa098805e2..6e4b581ea5b783a470d4a64c0759e45585674059 100644
--- a/components/omnibox/browser/shortcuts_provider.cc
+++ b/components/omnibox/browser/shortcuts_provider.cc
@@ -54,7 +54,6 @@ const int ShortcutsProvider::kShortcutsProviderDefaultMaxRelevance = 1199;
ShortcutsProvider::ShortcutsProvider(AutocompleteProviderClient* client)
: AutocompleteProvider(AutocompleteProvider::TYPE_SHORTCUTS),
client_(client),
- languages_(client_->GetAcceptLanguages()),
initialized_(false) {
scoped_refptr<ShortcutsBackend> backend = client_->GetShortcutsBackend();
if (backend.get()) {
@@ -149,8 +148,8 @@ void ShortcutsProvider::GetMatches(const AutocompleteInput& input) {
if (relevance) {
matches_.push_back(
ShortcutToACMatch(it->second, relevance, input, fixed_up_input));
- matches_.back().ComputeStrippedDestinationURL(
- input, client_->GetAcceptLanguages(), template_url_service);
+ matches_.back().ComputeStrippedDestinationURL(input,
+ template_url_service);
}
}
// Remove duplicates. This is important because it's common to have multiple
@@ -247,7 +246,6 @@ AutocompleteMatch ShortcutsProvider::ShortcutToACMatch(
}
}
match.EnsureUWYTIsAllowedToBeDefault(input,
- client_->GetAcceptLanguages(),
client_->GetTemplateURLService());
// Try to mark pieces of the contents and description as matches if they
« no previous file with comments | « components/omnibox/browser/shortcuts_provider.h ('k') | components/omnibox/browser/shortcuts_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698