diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 20:51:59 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 20:51:59 +0000 |
commit | 10224b2a7152d6a9516d133e774c3a71ccf42eb0 (patch) | |
tree | 8886ee7aff933f946fbf2ad4bc133a27cc1f88f9 /chrome | |
parent | be9897ee8947b54f83bf581dc405fc1d357971dc (diff) | |
download | chromium_src-10224b2a7152d6a9516d133e774c3a71ccf42eb0.zip chromium_src-10224b2a7152d6a9516d133e774c3a71ccf42eb0.tar.gz chromium_src-10224b2a7152d6a9516d133e774c3a71ccf42eb0.tar.bz2 |
Make confirm info bar buttons support mnemonics.
I think this is temporary because we're past string freeze and
the undo text is borrowed from elsewhere.
I should have caught this in the last change. :(
Review URL: http://codereview.chromium.org/164490
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/extensions/theme_preview_infobar_delegate.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/extensions/theme_preview_infobar_delegate.cc b/chrome/browser/extensions/theme_preview_infobar_delegate.cc index 7dddb11..754d577 100644 --- a/chrome/browser/extensions/theme_preview_infobar_delegate.cc +++ b/chrome/browser/extensions/theme_preview_infobar_delegate.cc @@ -50,11 +50,15 @@ int ThemePreviewInfobarDelegate::GetButtons() const { std::wstring ThemePreviewInfobarDelegate::GetButtonLabel( ConfirmInfoBarDelegate::InfoBarButton button) const { switch (button) { - case BUTTON_CANCEL: + case BUTTON_CANCEL: { // TODO(aa): Reusing IDS_UNDO is hack to get around string freeze. This // should be changed back to IDS_THEME_INSTALL_INFOBAR_UNDO_BUTTON at some // point. - return l10n_util::GetString(IDS_UNDO); + std::wstring undo_text = l10n_util::GetString(IDS_UNDO); + undo_text.erase(std::remove(undo_text.begin(), undo_text.end(), L'&'), + undo_text.end()); + return undo_text; + } default: return L""; } |