summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/autofill_cc_infobar_delegate.cc')
-rw-r--r--chrome/browser/autofill/autofill_cc_infobar_delegate.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
index 2a2aff0..49d16ae 100644
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
@@ -28,6 +28,8 @@ AutofillCCInfoBarDelegate::AutofillCCInfoBarDelegate(
}
AutofillCCInfoBarDelegate::~AutofillCCInfoBarDelegate() {
+ if (!had_user_interaction_)
+ LogUserAction(AutofillMetrics::INFOBAR_IGNORED);
}
void AutofillCCInfoBarDelegate::LogUserAction(
@@ -46,13 +48,6 @@ bool AutofillCCInfoBarDelegate::ShouldExpire(
return false;
}
-void AutofillCCInfoBarDelegate::InfoBarClosed() {
- if (!had_user_interaction_)
- LogUserAction(AutofillMetrics::INFOBAR_IGNORED);
-
- delete this;
-}
-
void AutofillCCInfoBarDelegate::InfoBarDismissed() {
LogUserAction(AutofillMetrics::INFOBAR_DENIED);
}