Commit f78ad0db authored by Jan Wilken Dörrie's avatar Jan Wilken Dörrie Committed by Commit Bot

[Passwords] Log PasswordGeneration.PopupShown to UMA

This change adds logging for PasswordGeneration.PopupShown to UMA,
replicating the existing UKM metric.

Bug: 911846
Change-Id: I25556519d87927e63f9a37f923af1e01d717ec12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521511Reviewed-by: default avatarMaria Kazinova <kazinova@google.com>
Reviewed-by: default avatarJesse Doherty <jwd@chromium.org>
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825186}
parent aaaef4e3
...@@ -281,6 +281,8 @@ PasswordFormMetricsRecorder::~PasswordFormMetricsRecorder() { ...@@ -281,6 +281,8 @@ PasswordFormMetricsRecorder::~PasswordFormMetricsRecorder() {
if (password_generation_popup_shown_ != if (password_generation_popup_shown_ !=
PasswordGenerationPopupShown::kNotShown) { PasswordGenerationPopupShown::kNotShown) {
UMA_HISTOGRAM_ENUMERATION("PasswordGeneration.PopupShown",
password_generation_popup_shown_);
ukm_entry_builder_.SetGeneration_PopupShown( ukm_entry_builder_.SetGeneration_PopupShown(
static_cast<int64_t>(password_generation_popup_shown_)); static_cast<int64_t>(password_generation_popup_shown_));
} }
......
...@@ -170,6 +170,7 @@ class PasswordFormMetricsRecorder ...@@ -170,6 +170,7 @@ class PasswordFormMetricsRecorder
kNotShown = 0, kNotShown = 0,
kShownAutomatically = 1, kShownAutomatically = 1,
kShownManually = 2, kShownManually = 2,
kMaxValue = kShownManually,
}; };
// Metric: PasswordGeneration.UserDecision // Metric: PasswordGeneration.UserDecision
......
...@@ -83,6 +83,13 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -83,6 +83,13 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
</summary> </summary>
</histogram> </histogram>
<histogram name="PasswordGeneration.PopupShown"
enum="PasswordGenerationPopupShown" expires_after="M92">
<owner>jdoerrie@chromium.org</owner>
<owner>kazinova@google.com</owner>
<summary>Records an entry if (and only if) a popup was shown.</summary>
</histogram>
<histogram name="PasswordGeneration.SubmissionAvailableEvent" <histogram name="PasswordGeneration.SubmissionAvailableEvent"
enum="PasswordSubmissionEvent" expires_after="M90"> enum="PasswordSubmissionEvent" expires_after="M90">
<owner>jdoerrie@chromium.org</owner> <owner>jdoerrie@chromium.org</owner>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment