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

Unified Diff: components/password_manager/core/browser/password_manager_metrics_util.cc

Issue 2670733002: Record UMA histogram when Form-Not-Secure warning is shown (Closed)
Patch Set: rebase Created 3 years, 10 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/password_manager/core/browser/password_manager_metrics_util.cc
diff --git a/components/password_manager/core/browser/password_manager_metrics_util.cc b/components/password_manager/core/browser/password_manager_metrics_util.cc
index b6996542aaff7f60fa88782b2843f7f5813db135..dae4940a2bf0e7f8b26231f41540ba8e54e50186 100644
--- a/components/password_manager/core/browser/password_manager_metrics_util.cc
+++ b/components/password_manager/core/browser/password_manager_metrics_util.cc
@@ -161,6 +161,14 @@ void LogShowedHttpNotSecureExplanation() {
"PasswordManager_ShowedHttpNotSecureExplanation"));
}
+void LogShowedFormNotSecureWarningOnCurrentNavigation() {
+ // Always record 'true': this is a counter of the number of times the warning
+ // is shown, to gather metrics such as the number of times the warning is
+ // shown per million page loads.
+ UMA_HISTOGRAM_BOOLEAN(
+ "PasswordManager.ShowedFormNotSecureWarningOnCurrentNavigation", true);
+}
+
} // namespace metrics_util
} // namespace password_manager
« no previous file with comments | « components/password_manager/core/browser/password_manager_metrics_util.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698