diff options
Diffstat (limited to 'chrome/browser/autofill/autofill_infobar_delegate.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_infobar_delegate.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/autofill/autofill_infobar_delegate.cc b/chrome/browser/autofill/autofill_infobar_delegate.cc index e2c0648..05ffae4 100644 --- a/chrome/browser/autofill/autofill_infobar_delegate.cc +++ b/chrome/browser/autofill/autofill_infobar_delegate.cc @@ -39,7 +39,11 @@ bool AutoFillInfoBarDelegate::ShouldExpire( } void AutoFillInfoBarDelegate::InfoBarClosed() { - Cancel(); + if (host_) { + host_->OnInfoBarClosed(); + host_ = NULL; + } + // This will delete us. ConfirmInfoBarDelegate::InfoBarClosed(); } @@ -79,7 +83,7 @@ bool AutoFillInfoBarDelegate::Accept() { bool AutoFillInfoBarDelegate::Cancel() { if (host_) { - host_->Reset(); + host_->OnInfoBarCancelled(); host_ = NULL; } return true; |