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

Unified Diff: components/toolbar/toolbar_model_impl.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/toolbar/toolbar_model_delegate.h ('k') | components/url_formatter/elide_url.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/toolbar_model_impl.cc
diff --git a/components/toolbar/toolbar_model_impl.cc b/components/toolbar/toolbar_model_impl.cc
index 076d3f64789b05a7c371b065c58c0239392146de..e515be465a9345260b45759571702615ca56b8cf 100644
--- a/components/toolbar/toolbar_model_impl.cc
+++ b/components/toolbar/toolbar_model_impl.cc
@@ -44,9 +44,6 @@ base::string16 ToolbarModelImpl::GetText() const {
}
base::string16 ToolbarModelImpl::GetFormattedURL(size_t* prefix_end) const {
- // May be empty during initialization.
- std::string languages = delegate_->GetAcceptLanguages();
-
GURL url(GetURL());
// Note that we can't unescape spaces here, because if the user copies this
// and pastes it into another program, that program may think the URL ends at
@@ -54,7 +51,7 @@ base::string16 ToolbarModelImpl::GetFormattedURL(size_t* prefix_end) const {
const base::string16 formatted_text =
delegate_->FormattedStringWithEquivalentMeaning(
url, url_formatter::FormatUrl(
- url, languages, url_formatter::kFormatUrlOmitAll,
+ url, url_formatter::kFormatUrlOmitAll,
net::UnescapeRule::NORMAL, nullptr, prefix_end, nullptr));
if (formatted_text.length() <= max_url_display_chars_)
return formatted_text;
« no previous file with comments | « components/toolbar/toolbar_model_delegate.h ('k') | components/url_formatter/elide_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698