Index: chrome/browser/autofill/autofill_cc_infobar_delegate.cc |
=================================================================== |
--- chrome/browser/autofill/autofill_cc_infobar_delegate.cc (revision 60095) |
+++ chrome/browser/autofill/autofill_cc_infobar_delegate.cc (working copy) |
@@ -23,8 +23,6 @@ |
AutoFillManager* host) |
: ConfirmInfoBarDelegate(tab_contents), |
host_(host) { |
- if (tab_contents) |
- tab_contents->AddInfoBar(this); |
} |
AutoFillCCInfoBarDelegate::~AutoFillCCInfoBarDelegate() { |
@@ -43,9 +41,7 @@ |
host_->OnInfoBarClosed(false); |
host_ = NULL; |
} |
- |
- // This will delete us. |
- ConfirmInfoBarDelegate::InfoBarClosed(); |
+ delete this; |
} |
string16 AutoFillCCInfoBarDelegate::GetMessageText() const { |