| Index: chrome/browser/autofill/autofill_cc_infobar_win.cc
|
| ===================================================================
|
| --- chrome/browser/autofill/autofill_cc_infobar_win.cc (revision 72676)
|
| +++ chrome/browser/autofill/autofill_cc_infobar_win.cc (working copy)
|
| @@ -15,7 +15,7 @@
|
| #include "views/controls/button/text_button.h"
|
| #include "views/controls/link.h"
|
|
|
| -class SaveCCInfoConfirmInfoBar : public AlertInfoBar,
|
| +class SaveCCInfoConfirmInfoBar : public ConfirmInfoBar,
|
| public views::LinkController {
|
| public:
|
| explicit SaveCCInfoConfirmInfoBar(ConfirmInfoBarDelegate* delegate);
|
| @@ -57,7 +57,7 @@
|
|
|
| SaveCCInfoConfirmInfoBar::SaveCCInfoConfirmInfoBar(
|
| ConfirmInfoBarDelegate* delegate)
|
| - : AlertInfoBar(delegate),
|
| + : ConfirmInfoBar(delegate),
|
| initialized_(false) {
|
| save_button_ = InfoBarTextButton::Create(this,
|
| delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_OK));
|
| @@ -86,7 +86,7 @@
|
| // Layout the close button.
|
| InfoBar::Layout();
|
|
|
| - int available_width = AlertInfoBar::GetAvailableWidth();
|
| + int available_width = ConfirmInfoBar::GetAvailableWidth();
|
|
|
| // Now append the link to the label's right edge.
|
| link_->SetVisible(!link_->GetText().empty());
|
| @@ -101,7 +101,7 @@
|
| gfx::Size dont_save_ps = dont_save_button_->GetPreferredSize();
|
|
|
| // Layout the icon and label.
|
| - AlertInfoBar::Layout();
|
| + ConfirmInfoBar::Layout();
|
|
|
| int save_x = label()->bounds().right() + kEndOfLabelSpacing;
|
| save_x = std::max(0, std::min(save_x, available_width - (save_ps.width() +
|
|
|