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

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: rebase fixup again 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « components/password_manager/core/browser/password_manager_metrics_util.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698