| Index: chrome/browser/chromeos/arc/arc_optin_uma.cc
|
| diff --git a/chrome/browser/chromeos/arc/arc_optin_uma.cc b/chrome/browser/chromeos/arc/arc_optin_uma.cc
|
| index 593f359e1ad9213b711f4677e936c4f2007ed808..a4d1b9823f64bd76cb03021eafe9f845334b73b3 100644
|
| --- a/chrome/browser/chromeos/arc/arc_optin_uma.cc
|
| +++ b/chrome/browser/chromeos/arc/arc_optin_uma.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/chromeos/arc/arc_optin_uma.h"
|
|
|
| +#include "base/metrics/histogram_functions.h"
|
| #include "base/metrics/histogram_macros.h"
|
|
|
| namespace arc {
|
| @@ -49,6 +50,18 @@ void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time,
|
| ->AddTime(elapsed_time);
|
| }
|
|
|
| +void UpdateAuthTiming(const char* histogram_name,
|
| + base::TimeDelta elapsed_time) {
|
| + base::UmaHistogramCustomTimes(histogram_name, elapsed_time,
|
| + base::TimeDelta::FromSeconds(1) /* minimum */,
|
| + base::TimeDelta::FromMinutes(3) /* maximum */,
|
| + 50 /* bucket_count */);
|
| +}
|
| +
|
| +void UpdateAuthCheckinAttempts(int32_t num_attempts) {
|
| + UMA_HISTOGRAM_SPARSE_SLOWLY("ArcAuth.CheckinAttempts", num_attempts);
|
| +}
|
| +
|
| void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state) {
|
| UMA_HISTOGRAM_ENUMERATION("Arc.OptInSilentAuthCode", static_cast<int>(state),
|
| static_cast<int>(OptInSilentAuthCode::SIZE));
|
|
|