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

Unified Diff: ios/web/web_state/web_state_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: 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: ios/web/web_state/web_state_impl.mm
diff --git a/ios/web/web_state/web_state_impl.mm b/ios/web/web_state/web_state_impl.mm
index d787e3900331ad6239ba1e26663ddab26bf69ec5..3815af019ced3de59d61ca896a3cbcb395ac5d02 100644
--- a/ios/web/web_state/web_state_impl.mm
+++ b/ios/web/web_state/web_state_impl.mm
@@ -278,11 +278,7 @@ const base::string16& WebStateImpl::GetTitle() const {
// match the WebContents implementation of this method.
DCHECK(Configured());
web::NavigationItem* item = navigation_manager_.GetLastCommittedItem();
- if (item) {
- return item->GetTitleForDisplay(
- web::GetWebClient()->GetAcceptLangs(GetBrowserState()));
- }
- return empty_string16_;
+ return item ? item->GetTitleForDisplay() : empty_string16_;
}
void WebStateImpl::ShowTransientContentView(CRWContentView* content_view) {
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | third_party/WebKit/Source/core/html/forms/EmailInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698