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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/metrics.cc
diff --git a/components/proximity_auth/metrics.cc b/components/proximity_auth/metrics.cc
index 99f74b13e2abf24b8d448007189da5adc7ddfdf6..7b4db8f42bdda59b77274213646920881cf00cf9 100644
--- a/components/proximity_auth/metrics.cc
+++ b/components/proximity_auth/metrics.cc
@@ -4,6 +4,7 @@
#include "components/proximity_auth/metrics.h"
+#include "base/logging.h"
#include "base/md5.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
@@ -69,5 +70,12 @@ void RecordAuthProximityRemoteDeviceModelHash(const std::string& device_model) {
HashDeviceModelName(device_model));
}
+void RecordRemoteSecuritySettingsState(RemoteSecuritySettingsState state) {
+ DCHECK(state < RemoteSecuritySettingsState::COUNT);
+ UMA_HISTOGRAM_ENUMERATION(
+ "EasyUnlock.RemoteLockScreenState", static_cast<int>(state),
+ static_cast<int>(RemoteSecuritySettingsState::COUNT));
+}
+
} // namespace metrics
} // namespace proximity_auth
« 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