[Password Manager] Add UMA stats for submitted form type
Add stats to determine how many forms are signup forms, login forms, etc.
BUG=
Committed: https://crrev.com/d231083176f2612a3f7541d0d9609599b44cef4c
Cr-Commit-Position: refs/heads/master@{#323798}
I debated a bit about how to get the submitted form. I'm not wild about ...
5 years, 8 months ago
(2015-03-30 21:13:21 UTC)
#2
I debated a bit about how to get the submitted form. I'm not wild about having
this dependency between SetSubmittedForm() and IsIgnorableChangePasswordForm(),
but I didn't like any alternatives better. Suggestions welcome.
vabr (Chromium)
Hi Garrett, LGTM with comments below. An alternative to adding the dependency of IsIgnorableChangePasswordForm on ...
5 years, 8 months ago
(2015-03-31 10:08:18 UTC)
#3
5 years, 8 months ago
(2015-04-01 22:34:49 UTC)
#4
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
File components/password_manager/core/browser/password_form_manager.cc (right):
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.cc:104:
submit_result_(kSubmitResultNotSubmitted) {
On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> form_type_ needs an initial value as well.
Good catch, done.
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.cc:448: return
is_ignorable_change_password_form_;
On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> Add a DCHECK that form_type_ has been set?
Done.
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
File components/password_manager/core/browser/password_form_manager.h (right):
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.h:96: // Update
with the |form| that was actually submitted. Used to determine
On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> nit: Update what? The PasswordFormManager / |this| ?
Yeah, done.
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.h:101: // When
attempting to provisionally save |form|, check this to check if it is
On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> optional nit: You are the native speaker here :), but does "check this to
check"
> really sounds better than "call this to check"?
My fault, leftover from a different change.
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.h:112: bool
IsIgnorableChangePasswordForm();
On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> nit: Let's change it to a simple is_ignorable_change_password_form() accessor
> for is_ignorable_change_password_form_?
Yeah, I went back and forth about this. While this actually is an accessor right
now, it wasn't clear that this needed to be communicated to callers. Since you
seem to prefer it, I'll switch.
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.h:247:
kFormTypeLogin = 0,
On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> Currently you do not assign this value anywhere. I suggest against making this
> the default value, and instead suggest assigning it in SetSubmittedForm
> explicitly (when appropriate).
>
Done.
> For the default value you might want to create another value, to carry the
> meaning: "no submitted form seen yet".
Yeah, I sort of didn't want to do that because it added a value that we wouldn't
actually upload, but the clarity it gives probably outweighs any possible
confusion about it not being uploaded. I added a comment to clarify.
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.h:255:
kFormTypeMax,
On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> optional nit:
> Not putting the "," after kFormTypeMax might help prevent the case when
somebody
> adds a value past this one by mistake.
Sure, done.
https://codereview.chromium.org/1049003002/diff/20001/tools/metrics/histogram...
File tools/metrics/histograms/histograms.xml (right):
https://codereview.chromium.org/1049003002/diff/20001/tools/metrics/histogram...
tools/metrics/histograms/histograms.xml:24828: + The type (e.g. signup,
login, change password) of all submitted password
On 2015/03/31 10:08:18, vabr (Chromium) wrote:
> nit: two spaces after "type" -- intentional?
Nope, fixed.
5 years, 8 months ago
(2015-04-02 08:05:53 UTC)
#7
Thanks, Garrett. LGTM!
Vaclav
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
File components/password_manager/core/browser/password_form_manager.h (right):
https://codereview.chromium.org/1049003002/diff/20001/components/password_man...
components/password_manager/core/browser/password_form_manager.h:247:
kFormTypeLogin = 0,
On 2015/04/01 22:34:48, Garrett Casto wrote:
> On 2015/03/31 10:08:17, vabr (Chromium) wrote:
> > Currently you do not assign this value anywhere. I suggest against making
this
> > the default value, and instead suggest assigning it in SetSubmittedForm
> > explicitly (when appropriate).
> >
>
> Done.
>
> > For the default value you might want to create another value, to carry the
> > meaning: "no submitted form seen yet".
>
> Yeah, I sort of didn't want to do that because it added a value that we
wouldn't
> actually upload, but the clarity it gives probably outweighs any possible
> confusion about it not being uploaded. I added a comment to clarify.
Acknowledged.
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1049003002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1049003002/diff/60001/tools/metrics/histograms/histograms.xml#newcode24829 tools/metrics/histograms/histograms.xml:24829: + forms. Nit: Please mention when this is ...
5 years, 8 months ago
(2015-04-02 14:24:08 UTC)
#8
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/11514) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 8 months ago
(2015-04-02 21:55:09 UTC)
#13
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/25879) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 8 months ago
(2015-04-03 08:06:04 UTC)
#20
Issue 1049003002: [Password Manager] Add UMA stats for submitted form type
(Closed)
Created 5 years, 8 months ago by Garrett Casto
Modified 5 years, 8 months ago
Reviewers: vabr (Chromium), Alexei Svitkine (slow)
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 18