| Index: chrome/browser/tab_contents/navigation_controller.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/navigation_controller.cc (revision 10809)
|
| +++ chrome/browser/tab_contents/navigation_controller.cc (working copy)
|
| @@ -475,12 +475,12 @@
|
|
|
| NavigationEntry* entry = new NavigationEntry(type, NULL, -1, real_url,
|
| referrer,
|
| - std::wstring(), transition);
|
| + string16(), transition);
|
| entry->set_display_url(url);
|
| entry->set_user_typed_url(url);
|
| if (url.SchemeIsFile()) {
|
| - entry->set_title(file_util::GetFilenameFromPath(UTF8ToWide(url.host() +
|
| - url.path())));
|
| + entry->set_title(WideToUTF16Hack(
|
| + file_util::GetFilenameFromPath(UTF8ToWide(url.host() + url.path()))));
|
| }
|
| return entry;
|
| }
|
| @@ -513,7 +513,7 @@
|
| const std::wstring& title,
|
| SkBitmap* icon) {
|
| NavigationEntry* entry = CreateNavigationEntry(url, referrer, type);
|
| - entry->set_title(title);
|
| + entry->set_title(WideToUTF16Hack(title));
|
| if (icon)
|
| entry->favicon().set_bitmap(*icon);
|
|
|
| @@ -526,11 +526,11 @@
|
| return load_pending_entry_when_active_;
|
| }
|
|
|
| -const std::wstring& NavigationController::GetLazyTitle() const {
|
| +const string16& NavigationController::GetLazyTitle() const {
|
| if (pending_entry_)
|
| - return pending_entry_->GetTitleForDisplay();
|
| + return pending_entry_->GetTitleForDisplay(this);
|
| else
|
| - return EmptyWString();
|
| + return EmptyString16();
|
| }
|
|
|
| const SkBitmap& NavigationController::GetLazyFavIcon() const {
|
|
|