Introduce a new UMA that records, for a given field classification,
if subsequent user actions confirm or disprove it.
This is part 1 of 2: in this CL I add metrics for username and
current password classification. I'll add metrics for new and
confirmation password fields in a follow-up.
Here's how the new UMA works:
1) [Exists before this CL] After parsing the form on page load,
renderer ids of key form elements are cached in the form metrics
recorder.
2) [Added in this CL] When the form is submitted, we compare the
values in the form with the previously saved values to see if they
are reused.
Bug: 372385735
Change-Id: Ic609073e1e72c2e64120fa9da32d506ec1e72a93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5912992
Commit-Queue: Maria Kazinova <kazinova@google.com>
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1367374}