| 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/basictypes.h" | 7 #include "base/macros.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| 11 #include "base/prefs/scoped_user_pref_update.h" | 11 #include "base/prefs/scoped_user_pref_update.h" |
| 12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "components/password_manager/core/common/password_manager_pref_names.h" | 17 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 void LogUpdatePasswordSubmissionEvent(UpdatePasswordSubmissionEvent event) { | 178 void LogUpdatePasswordSubmissionEvent(UpdatePasswordSubmissionEvent event) { |
| 179 DCHECK_LT(event, UPDATE_PASSWORD_EVENT_COUNT); | 179 DCHECK_LT(event, UPDATE_PASSWORD_EVENT_COUNT); |
| 180 UMA_HISTOGRAM_ENUMERATION("PasswordManager.UpdatePasswordSubmissionEvent", | 180 UMA_HISTOGRAM_ENUMERATION("PasswordManager.UpdatePasswordSubmissionEvent", |
| 181 event, UPDATE_PASSWORD_EVENT_COUNT); | 181 event, UPDATE_PASSWORD_EVENT_COUNT); |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace metrics_util | 184 } // namespace metrics_util |
| 185 | 185 |
| 186 } // namespace password_manager | 186 } // namespace password_manager |
| OLD | NEW |