diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 23:06:59 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 23:06:59 +0000 |
commit | 10ca64313cc70fd791172d6257c607b2c80e5eff (patch) | |
tree | c80de1e768cd3c9b4c82a386a778c7d844667298 /chrome/browser/back_forward_menu_model.cc | |
parent | f84645223fa54674d8758ac71c28f1fe75ad0734 (diff) | |
download | chromium_src-10ca64313cc70fd791172d6257c607b2c80e5eff.zip chromium_src-10ca64313cc70fd791172d6257c607b2c80e5eff.tar.gz chromium_src-10ca64313cc70fd791172d6257c607b2c80e5eff.tar.bz2 |
Display a title for files in the back/forward menu.
Patch by Paul Robinson <http://codereview.chromium.org/56045>
BUG=7871
Review URL: http://codereview.chromium.org/57013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/back_forward_menu_model.cc')
-rw-r--r-- | chrome/browser/back_forward_menu_model.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/back_forward_menu_model.cc b/chrome/browser/back_forward_menu_model.cc index 6a95743..986ae26 100644 --- a/chrome/browser/back_forward_menu_model.cc +++ b/chrome/browser/back_forward_menu_model.cc @@ -222,7 +222,8 @@ std::wstring BackForwardMenuModel::GetItemLabel(int menu_id) const { return L""; NavigationEntry* entry = GetNavigationEntry(menu_id); - return UTF16ToWideHack(entry->title()); + return UTF16ToWideHack(entry->GetTitleForDisplay( + GetTabContents()->controller())); } const SkBitmap& BackForwardMenuModel::GetItemIcon(int menu_id) const { |