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

Unified Diff: chrome/browser/ui/views/infobars/infobars.cc

Issue 6249010: Cleanup: de-inline a bunch of classes, rename and move "PluginInstaller" to "... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
Index: chrome/browser/ui/views/infobars/infobars.cc
===================================================================
--- chrome/browser/ui/views/infobars/infobars.cc (revision 72158)
+++ chrome/browser/ui/views/infobars/infobars.cc (working copy)
@@ -471,10 +471,14 @@
link_(NULL),
initialized_(false) {
ok_button_ = InfoBarTextButton::Create(this,
- delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_OK));
+ (delegate->GetButtons() & ConfirmInfoBarDelegate::BUTTON_OK) ?
+ delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_OK) :
+ string16());
ok_button_->SetAccessibleName(WideToUTF16Hack(ok_button_->text()));
cancel_button_ = InfoBarTextButton::Create(this,
- delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_CANCEL));
+ (delegate->GetButtons() & ConfirmInfoBarDelegate::BUTTON_CANCEL) ?
+ delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_CANCEL) :
+ string16());
cancel_button_->SetAccessibleName(WideToUTF16Hack(cancel_button_->text()));
// Set up the link.
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container.cc ('k') | chrome/browser/ui/views/infobars/translate_infobar_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698