Chromium Code Reviews| Index: components/signin/core/browser/signin_metrics.cc |
| diff --git a/components/signin/core/browser/signin_metrics.cc b/components/signin/core/browser/signin_metrics.cc |
| index 5530d4cef40ddabdd833473bfee3ba1f0a43fd85..39cc241a510473b123376b2d87d72136f72bf287 100644 |
| --- a/components/signin/core/browser/signin_metrics.cc |
| +++ b/components/signin/core/browser/signin_metrics.cc |
| @@ -51,12 +51,24 @@ void LogSigninAccountReconciliation(int total_number_accounts, |
| } |
| } |
| +void LogSigninProfile(bool is_first_run, base::Time install_date) { |
| + // Track whether or not the user signed in during the first run of Chrome. |
| + UMA_HISTOGRAM_BOOLEAN("Signin.DuringFirstRun", is_first_run); |
| + |
| + // Determine how much time passed since install when this profile was signed |
| + // in. |
| + base::TimeDelta elapsed_time = base::Time::Now() - install_date; |
| + UMA_HISTOGRAM_COUNTS("Signin.ElapsedTimeFromInstallToSignin", |
| + elapsed_time.InMinutes()); |
| +} |
| + |
| void LogSigninAddAccount() { |
| // Account signin may fail for a wide variety of reasons. There is no |
| // explicit false, but one can compare this value with the various UI |
| // flows that lead to account sign-in, and deduce that the difference |
| // counts the failures. |
| UMA_HISTOGRAM_BOOLEAN("Signin.AddAccount", true); |
| + |
|
Alexei Svitkine (slow)
2014/08/12 19:45:16
Nit: Remove blank line.
Mike Lerman
2014/08/13 15:32:19
Done.
|
| } |
| void LogSignout(ProfileSignout metric) { |