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

Unified Diff: components/omnibox/browser/zero_suggest_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/zero_suggest_provider.cc
diff --git a/components/omnibox/browser/zero_suggest_provider.cc b/components/omnibox/browser/zero_suggest_provider.cc
index 4a2043a6bcaf40955c0c80b8c03f8a9d86da3c2e..947f2a8815f32aad25ea580f99c504f06db202ef 100644
--- a/components/omnibox/browser/zero_suggest_provider.cc
+++ b/components/omnibox/browser/zero_suggest_provider.cc
@@ -290,9 +290,8 @@ AutocompleteMatch ZeroSuggestProvider::NavigationToMatch(
match.destination_url = navigation.url();
// Zero suggest results should always omit protocols and never appear bold.
- const std::string languages(client()->GetAcceptLanguages());
match.contents = url_formatter::FormatUrl(
- navigation.url(), languages, url_formatter::kFormatUrlOmitAll,
+ navigation.url(), url_formatter::kFormatUrlOmitAll,
net::UnescapeRule::SPACES, nullptr, nullptr, nullptr);
match.fill_into_edit +=
AutocompleteInput::FormattedStringWithEquivalentMeaning(
@@ -384,13 +383,12 @@ void ZeroSuggestProvider::ConvertResultsToAutocompleteMatches() {
}
const base::string16 current_query_string16(
base::ASCIIToUTF16(current_query_));
- const std::string languages(client()->GetAcceptLanguages());
for (size_t i = 0; i < most_visited_urls_.size(); i++) {
const history::MostVisitedURL& url = most_visited_urls_[i];
SearchSuggestionParser::NavigationResult nav(
client()->GetSchemeClassifier(), url.url,
AutocompleteMatchType::NAVSUGGEST, url.title, std::string(), false,
- relevance, true, current_query_string16, languages);
+ relevance, true, current_query_string16);
matches_.push_back(NavigationToMatch(nav));
--relevance;
}
« no previous file with comments | « components/omnibox/browser/url_index_private_data.cc ('k') | components/password_manager/core/browser/affiliation_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698