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

Side by Side Diff: components/password_manager/core/browser/password_manager_metrics_util.cc

Issue 2665313002: Add a counter for clicking on Form-Not-Secure warnings (Closed)
Patch Set: use UserActions, and separate for password/autofill 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/password_manager/core/browser/password_manager_metrics_util .h" 5 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/metrics/user_metrics.h"
9 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
10 #include "base/rand_util.h" 11 #include "base/rand_util.h"
11 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
13 #include "base/time/time.h" 14 #include "base/time/time.h"
14 #include "base/values.h" 15 #include "base/values.h"
15 #include "components/password_manager/core/common/password_manager_pref_names.h" 16 #include "components/password_manager/core/common/password_manager_pref_names.h"
16 #include "components/prefs/pref_service.h" 17 #include "components/prefs/pref_service.h"
17 #include "components/prefs/scoped_user_pref_update.h" 18 #include "components/prefs/scoped_user_pref_update.h"
18 #include "url/gurl.h" 19 #include "url/gurl.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.TotalPasswords", 143 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.TotalPasswords",
143 saved_passwords); 144 saved_passwords);
144 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.NumberOfMatches", 145 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.NumberOfMatches",
145 number_matches); 146 number_matches);
146 UMA_HISTOGRAM_ENUMERATION( 147 UMA_HISTOGRAM_ENUMERATION(
147 "PasswordManager.PasswordReuse.PasswordFieldDetected", 148 "PasswordManager.PasswordReuse.PasswordFieldDetected",
148 password_field_detected ? HAS_PASSWORD_FIELD : NO_PASSWORD_FIELD, 149 password_field_detected ? HAS_PASSWORD_FIELD : NO_PASSWORD_FIELD,
149 PASSWORD_REUSE_PASSWORD_FIELD_DETECTED_COUNT); 150 PASSWORD_REUSE_PASSWORD_FIELD_DETECTED_COUNT);
150 } 151 }
151 152
153 void LogShowedHttpNotSecureExplanation() {
154 base::RecordAction(base::UserMetricsAction(
155 "PasswordManager_ShowedHttpNotSecureExplanation"));
156 }
157
152 } // namespace metrics_util 158 } // namespace metrics_util
153 159
154 } // namespace password_manager 160 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698