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

Unified Diff: ios/web/web_state/ui/crw_web_controller.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/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index a9132ac76a01fa266796855ff0821fed9d9110a3..61702849c8379f3b460f2176629b686162cdc0f7 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -3645,10 +3645,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
title = @"JavaScript";
} else {
DCHECK(web::GetWebClient());
- const std::string& acceptLangs = web::GetWebClient()->GetAcceptLangs(
- self.webStateImpl->GetBrowserState());
- base::string16 urlText =
- url_formatter::FormatUrl(GURL(href), acceptLangs);
+ base::string16 urlText = url_formatter::FormatUrl(GURL(href));
title = base::SysUTF16ToNSString(urlText);
}
}

Powered by Google App Engine
This is Rietveld 408576698