Index: components/autofill/core/browser/autofill_metrics.cc |
diff --git a/components/autofill/core/browser/autofill_metrics.cc b/components/autofill/core/browser/autofill_metrics.cc |
index e655f7fe66f9abaff1408423c1f65e2fcf68b254..bbceb4fe39aea517b0b9eb5bd4f510199f08c99e 100644 |
--- a/components/autofill/core/browser/autofill_metrics.cc |
+++ b/components/autofill/core/browser/autofill_metrics.cc |
@@ -814,6 +814,10 @@ void AutofillMetrics::FormEventLogger::OnWillSubmitForm() { |
Log(AutofillMetrics::FORM_EVENT_LOCAL_SUGGESTION_WILL_SUBMIT_ONCE); |
} |
+ if (has_logged_suggestions_shown_) { |
+ Log(AutofillMetrics::FORM_EVENT_SUGGESTION_SHOWN_WILL_SUBMIT_ONCE); |
+ } |
+ |
base::RecordAction(base::UserMetricsAction("Autofill_OnWillSubmitForm")); |
} |
@@ -837,6 +841,10 @@ void AutofillMetrics::FormEventLogger::OnFormSubmitted() { |
} else { |
Log(AutofillMetrics::FORM_EVENT_LOCAL_SUGGESTION_SUBMITTED_ONCE); |
} |
+ |
+ if (has_logged_suggestions_shown_) { |
+ Log(AutofillMetrics::FORM_EVENT_SUGGESTION_SHOWN_SUBMITTED_ONCE); |
+ } |
} |
void AutofillMetrics::FormEventLogger::Log(FormEvent event) const { |