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

Side by Side Diff: components/proximity_auth/metrics.cc

Issue 1239193005: [Proximity Auth] Port the UnlockManager class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix destruction order in tests on ChromeOS Created 5 years, 4 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
« no previous file with comments | « components/proximity_auth/metrics.h ('k') | components/proximity_auth/proximity_auth_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/logging.h"
7 #include "base/md5.h" 8 #include "base/md5.h"
8 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
9 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
10 #include "base/sys_byteorder.h" 11 #include "base/sys_byteorder.h"
11 12
12 namespace proximity_auth { 13 namespace proximity_auth {
13 namespace metrics { 14 namespace metrics {
14 15
15 namespace { 16 namespace {
16 17
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 base::TimeDelta time_since_last_zero_rssi) { 63 base::TimeDelta time_since_last_zero_rssi) {
63 UMA_HISTOGRAM_TIMES("EasyUnlock.AuthProximity.TimeSinceLastZeroRssi", 64 UMA_HISTOGRAM_TIMES("EasyUnlock.AuthProximity.TimeSinceLastZeroRssi",
64 time_since_last_zero_rssi); 65 time_since_last_zero_rssi);
65 } 66 }
66 67
67 void RecordAuthProximityRemoteDeviceModelHash(const std::string& device_model) { 68 void RecordAuthProximityRemoteDeviceModelHash(const std::string& device_model) {
68 UMA_HISTOGRAM_SPARSE_SLOWLY("EasyUnlock.AuthProximity.RemoteDeviceModelHash", 69 UMA_HISTOGRAM_SPARSE_SLOWLY("EasyUnlock.AuthProximity.RemoteDeviceModelHash",
69 HashDeviceModelName(device_model)); 70 HashDeviceModelName(device_model));
70 } 71 }
71 72
73 void RecordRemoteSecuritySettingsState(RemoteSecuritySettingsState state) {
74 DCHECK(state < RemoteSecuritySettingsState::COUNT);
75 UMA_HISTOGRAM_ENUMERATION(
76 "EasyUnlock.RemoteLockScreenState", static_cast<int>(state),
77 static_cast<int>(RemoteSecuritySettingsState::COUNT));
78 }
79
72 } // namespace metrics 80 } // namespace metrics
73 } // namespace proximity_auth 81 } // namespace proximity_auth
OLDNEW
« no previous file with comments | « components/proximity_auth/metrics.h ('k') | components/proximity_auth/proximity_auth_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698