diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-16 16:46:20 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-16 16:46:20 +0000 |
commit | f1bc5719efceb33824b18d54be0f747d21a094c6 (patch) | |
tree | f88ee19242859f62319f7ed45851e4e4e5a700f8 /chrome/browser/tab_contents | |
parent | 3ce46685e6281983ed73a24b59388f39467512eb (diff) | |
download | chromium_src-f1bc5719efceb33824b18d54be0f747d21a094c6.zip chromium_src-f1bc5719efceb33824b18d54be0f747d21a094c6.tar.gz chromium_src-f1bc5719efceb33824b18d54be0f747d21a094c6.tar.bz2 |
Change wording and appearance of insecure script infobar.
Review URL: http://codereview.chromium.org/7097014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/blocked_infobar_delegate.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/blocked_infobar_delegate.cc b/chrome/browser/tab_contents/blocked_infobar_delegate.cc index 4da80c1..a434250 100644 --- a/chrome/browser/tab_contents/blocked_infobar_delegate.cc +++ b/chrome/browser/tab_contents/blocked_infobar_delegate.cc @@ -49,10 +49,13 @@ string16 BlockedInfoBarDelegate::GetMessageText() const { } int BlockedInfoBarDelegate::GetButtons() const { - return BUTTON_OK; + return BUTTON_OK | BUTTON_CANCEL; } string16 BlockedInfoBarDelegate::GetButtonLabel(InfoBarButton button) const { + if (button == BUTTON_CANCEL) + return l10n_util::GetStringUTF16(IDS_OK); + DCHECK_EQ(button, BUTTON_OK); return l10n_util::GetStringUTF16(button_resource_id_); }; |