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

Unified Diff: components/omnibox/browser/history_quick_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/history_quick_provider.cc
diff --git a/components/omnibox/browser/history_quick_provider.cc b/components/omnibox/browser/history_quick_provider.cc
index bf7db5ce95da22ee63ba407bc605928b8117abde..a626fac2012c569a8e7630403c0785c3756860f5 100644
--- a/components/omnibox/browser/history_quick_provider.cc
+++ b/components/omnibox/browser/history_quick_provider.cc
@@ -38,7 +38,6 @@ bool HistoryQuickProvider::disabled_ = false;
HistoryQuickProvider::HistoryQuickProvider(AutocompleteProviderClient* client)
: HistoryProvider(AutocompleteProvider::TYPE_HISTORY_QUICK, client),
- languages_(client->GetAcceptLanguages()),
in_memory_url_index_(client->GetInMemoryURLIndex()) {
}
@@ -209,7 +208,7 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
~(!history_match.match_in_scheme ? 0 : url_formatter::kFormatUrlOmitHTTP);
base::OffsetAdjuster::Adjustments adjustments;
match.contents = url_formatter::FormatUrlWithAdjustments(
- info.url(), languages_, format_types, net::UnescapeRule::SPACES, nullptr,
+ info.url(), format_types, net::UnescapeRule::SPACES, nullptr,
nullptr, &adjustments);
match.fill_into_edit =
AutocompleteInput::FormattedStringWithEquivalentMeaning(
@@ -242,10 +241,8 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
match.allowed_to_be_default_match = match.inline_autocompletion.empty() ||
!PreventInlineAutocomplete(autocomplete_input_);
}
- match.EnsureUWYTIsAllowedToBeDefault(
- autocomplete_input_,
- client()->GetAcceptLanguages(),
- client()->GetTemplateURLService());
+ match.EnsureUWYTIsAllowedToBeDefault(autocomplete_input_,
+ client()->GetTemplateURLService());
// Format the description autocomplete presentation.
match.description = info.title();
« no previous file with comments | « components/omnibox/browser/history_quick_provider.h ('k') | components/omnibox/browser/history_quick_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698