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