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

Unified Diff: chrome/browser/autofill/autofill_cc_infobar_win.cc

Issue 6262018: Cleanup:... (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/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,8 +15,7 @@
#include "views/controls/button/text_button.h"
#include "views/controls/link.h"
-class SaveCCInfoConfirmInfoBar : public AlertInfoBar,
- public views::LinkController {
+class SaveCCInfoConfirmInfoBar : public ConfirmInfoBar {
public:
explicit SaveCCInfoConfirmInfoBar(ConfirmInfoBarDelegate* delegate);
virtual ~SaveCCInfoConfirmInfoBar();
@@ -57,7 +56,7 @@
SaveCCInfoConfirmInfoBar::SaveCCInfoConfirmInfoBar(
ConfirmInfoBarDelegate* delegate)
- : AlertInfoBar(delegate),
+ : ConfirmInfoBar(delegate),
initialized_(false) {
save_button_ = InfoBarTextButton::Create(this,
delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_OK));
@@ -86,7 +85,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 +100,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() +
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698