Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: chrome/browser/tab_contents/blocked_infobar_delegate.cc

Issue 7097014: Change wording and appearance of insecure script infobar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/blocked_infobar_delegate.cc
===================================================================
--- chrome/browser/tab_contents/blocked_infobar_delegate.cc (revision 89021)
+++ chrome/browser/tab_contents/blocked_infobar_delegate.cc (working copy)
@@ -49,10 +49,13 @@
}
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_);
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698