OLD | NEW |
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.TotalPasswords", | 149 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.TotalPasswords", |
149 saved_passwords); | 150 saved_passwords); |
150 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.NumberOfMatches", | 151 UMA_HISTOGRAM_COUNTS_1000("PasswordManager.PasswordReuse.NumberOfMatches", |
151 number_matches); | 152 number_matches); |
152 UMA_HISTOGRAM_ENUMERATION( | 153 UMA_HISTOGRAM_ENUMERATION( |
153 "PasswordManager.PasswordReuse.PasswordFieldDetected", | 154 "PasswordManager.PasswordReuse.PasswordFieldDetected", |
154 password_field_detected ? HAS_PASSWORD_FIELD : NO_PASSWORD_FIELD, | 155 password_field_detected ? HAS_PASSWORD_FIELD : NO_PASSWORD_FIELD, |
155 PASSWORD_REUSE_PASSWORD_FIELD_DETECTED_COUNT); | 156 PASSWORD_REUSE_PASSWORD_FIELD_DETECTED_COUNT); |
156 } | 157 } |
157 | 158 |
| 159 void LogShowedHttpNotSecureExplanation() { |
| 160 base::RecordAction(base::UserMetricsAction( |
| 161 "PasswordManager_ShowedHttpNotSecureExplanation")); |
| 162 } |
| 163 |
158 } // namespace metrics_util | 164 } // namespace metrics_util |
159 | 165 |
160 } // namespace password_manager | 166 } // namespace password_manager |
OLD | NEW |