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(); |