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

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

Issue 2678113002: Record UMA histogram when Form-Not-Secure warning is shown (Closed)
Patch Set: 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 1782f57c763c29f51504305c0b89c7a9bc374d50..61172b5eb83584d806730f1ed1d3c06608ac57a6 100644
--- a/components/password_manager/core/browser/password_manager_metrics_util.cc
+++ b/components/password_manager/core/browser/password_manager_metrics_util.cc
@@ -155,6 +155,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