[Autofill] Add FormEvent logging for "will submit form".
A previous CL split the AutofillManager::OnFormSubmitted logic into OnWillSubmit and OnFormSubmitted to support AJAX forms. This change splits the logged events similarly and introduces AutofillMetrics::FormEventLogger::OnWillSubmitForm, which is logged anytime a form is about to be submitted. We move FormEventLogger::OnDidSubmitForm back into AutofillManager::OnFormSubmitted, since it more closely matches what happened before. We will use the extra "will submit" logged events to determine the proportion of submitted forms that are AJAX (don't end up calling OnFormSubmitted). BUG=460488 TEST=AutofillMetricsTest Review URL: https://codereview.chromium.org/1010263002 Cr-Commit-Position: refs/heads/master@{#322169}
Showing
This diff is collapsed.
Please register or sign in to comment