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

Unified Diff: ios/web/navigation/navigation_item_impl.mm

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased, most Android targets locally built successfully Created 4 years, 9 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: ios/web/navigation/navigation_item_impl.mm
diff --git a/ios/web/navigation/navigation_item_impl.mm b/ios/web/navigation/navigation_item_impl.mm
index ebecbe8aa150ed5182f443ba8798d93598cd7a79..7d7e74841c3b802eeb86b1a508dc0c7cca966d7d 100644
--- a/ios/web/navigation/navigation_item_impl.mm
+++ b/ios/web/navigation/navigation_item_impl.mm
@@ -127,8 +127,7 @@ const PageDisplayState& NavigationItemImpl::GetPageDisplayState() const {
return page_display_state_;
}
-const base::string16& NavigationItemImpl::GetTitleForDisplay(
- const std::string& languages) const {
+const base::string16& NavigationItemImpl::GetTitleForDisplay() const {
// Most pages have real titles. Don't even bother caching anything if this is
// the case.
if (!title_.empty())
@@ -142,9 +141,9 @@ const base::string16& NavigationItemImpl::GetTitleForDisplay(
// Use the virtual URL first if any, and fall back on using the real URL.
base::string16 title;
if (!virtual_url_.is_empty()) {
- title = url_formatter::FormatUrl(virtual_url_, languages);
+ title = url_formatter::FormatUrl(virtual_url_);
} else if (!url_.is_empty()) {
- title = url_formatter::FormatUrl(url_, languages);
+ title = url_formatter::FormatUrl(url_);
}
// For file:// URLs use the filename as the title, not the full path.

Powered by Google App Engine
This is Rietveld 408576698