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