summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 16:46:20 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 16:46:20 +0000
commitf1bc5719efceb33824b18d54be0f747d21a094c6 (patch)
treef88ee19242859f62319f7ed45851e4e4e5a700f8 /chrome/browser/tab_contents
parent3ce46685e6281983ed73a24b59388f39467512eb (diff)
downloadchromium_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.cc5
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_);
};