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

Unified Diff: chrome/browser/tab_contents.cc

Issue 7905: This fixes http://code.google.com/p/chromium/issues/detail?id=2529, which is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 | « chrome/browser/navigation_entry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents.cc (revision 3749)
+++ chrome/browser/tab_contents.cc (working copy)
@@ -131,12 +131,12 @@
// The exception is with transient pages, for which we really want to use
// their title, as they are not committed.
NavigationEntry* entry = controller_->GetTransientEntry();
- if (entry && !entry->title().empty())
- return entry->title();
+ if (entry)
+ return entry->GetTitleForDisplay();
entry = controller_->GetLastCommittedEntry();
if (entry)
- return entry->title();
+ return entry->GetTitleForDisplay();
else if (controller_->LoadingURLLazily())
return controller_->GetLazyTitle();
return EmptyWString();
« no previous file with comments | « chrome/browser/navigation_entry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698