OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/proximity_auth/metrics.h" | 5 #include "components/proximity_auth/metrics.h" |
6 | 6 |
| 7 #include <algorithm> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/md5.h" | 10 #include "base/md5.h" |
9 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/sparse_histogram.h" | 12 #include "base/metrics/sparse_histogram.h" |
11 #include "base/sys_byteorder.h" | 13 #include "base/sys_byteorder.h" |
12 | 14 |
13 namespace proximity_auth { | 15 namespace proximity_auth { |
14 namespace metrics { | 16 namespace metrics { |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 74 |
73 void RecordRemoteSecuritySettingsState(RemoteSecuritySettingsState state) { | 75 void RecordRemoteSecuritySettingsState(RemoteSecuritySettingsState state) { |
74 DCHECK(state < RemoteSecuritySettingsState::COUNT); | 76 DCHECK(state < RemoteSecuritySettingsState::COUNT); |
75 UMA_HISTOGRAM_ENUMERATION( | 77 UMA_HISTOGRAM_ENUMERATION( |
76 "EasyUnlock.RemoteLockScreenState", static_cast<int>(state), | 78 "EasyUnlock.RemoteLockScreenState", static_cast<int>(state), |
77 static_cast<int>(RemoteSecuritySettingsState::COUNT)); | 79 static_cast<int>(RemoteSecuritySettingsState::COUNT)); |
78 } | 80 } |
79 | 81 |
80 } // namespace metrics | 82 } // namespace metrics |
81 } // namespace proximity_auth | 83 } // namespace proximity_auth |
OLD | NEW |