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

Unified Diff: components/autofill/core/browser/autofill_metrics.cc

Issue 1010263002: [Autofill] Add FormEvent logging for "will submit form". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 5 years, 9 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: 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 c016c6bcec3fc8141e2b67afeef17c01edbba3f4..69dd4f13111e9f4e75acf8a2a8c4db32b466c08a 100644
--- a/components/autofill/core/browser/autofill_metrics.cc
+++ b/components/autofill/core/browser/autofill_metrics.cc
@@ -565,6 +565,14 @@ void AutofillMetrics::FormEventLogger::OnDidFillSuggestion(
}
}
+void AutofillMetrics::FormEventLogger::OnWillSubmitForm() {
+ // Not logging this kind of form if we haven't logged a user interaction.
+ if (!has_logged_interacted_)
+ return;
+
+ Log(AutofillMetrics::FORM_EVENT_WILL_SUBMIT);
Ilya Sherman 2015/03/18 22:42:10 Should this event be logged only once, as below?
Mathieu 2015/03/23 15:24:02 +walter I wanted to capture all OnWillSubmit even
Walter Cacau 2015/03/23 19:06:37 The idea was that we were tracking the basic user
+}
+
void AutofillMetrics::FormEventLogger::OnDidSubmitForm() {
// Not logging this kind of form if we haven't logged a user interaction.
if (!has_logged_interacted_)

Powered by Google App Engine
This is Rietveld 408576698