| Index: chrome/browser/tab_contents/tab_contents.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/tab_contents.cc (revision 10809)
|
| +++ chrome/browser/tab_contents/tab_contents.cc (working copy)
|
| @@ -149,7 +149,7 @@
|
| return entry ? entry->display_url() : GURL::EmptyGURL();
|
| }
|
|
|
| -const std::wstring& TabContents::GetTitle() const {
|
| +const string16& TabContents::GetTitle() const {
|
| // We use the title for the last committed entry rather than a pending
|
| // navigation entry. For example, when the user types in a URL, we want to
|
| // keep the old page's title until the new load has committed and we get a new
|
| @@ -158,14 +158,14 @@
|
| // their title, as they are not committed.
|
| NavigationEntry* entry = controller_->GetTransientEntry();
|
| if (entry)
|
| - return entry->GetTitleForDisplay();
|
| + return entry->GetTitleForDisplay(controller_);
|
|
|
| entry = controller_->GetLastCommittedEntry();
|
| if (entry)
|
| - return entry->GetTitleForDisplay();
|
| + return entry->GetTitleForDisplay(controller_);
|
| else if (controller_->LoadingURLLazily())
|
| return controller_->GetLazyTitle();
|
| - return EmptyWString();
|
| + return EmptyString16();
|
| }
|
|
|
| int32 TabContents::GetMaxPageID() {
|
|
|