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

Unified Diff: components/signin/core/browser/signin_metrics.cc

Issue 466043002: Track when user signs in the profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android doesn't track first run within chrome c++ Created 6 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
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 df00507025980ce55b3c90c3101cf73f74f712e0..ad78b6404977631793d0f7c46392db94c5041577 100644
--- a/components/signin/core/browser/signin_metrics.cc
+++ b/components/signin/core/browser/signin_metrics.cc
@@ -51,6 +51,17 @@ 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
« no previous file with comments | « components/signin/core/browser/signin_metrics.h ('k') | components/signin/core/browser/test_signin_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698