Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / components / signin / core / browser / signin_metrics.cc
index 5530d4c..ad78b64 100644 (file)
@@ -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
@@ -64,4 +75,9 @@ void LogSignout(ProfileSignout metric) {
                             NUM_PROFILE_SIGNOUT_METRICS);
 }
 
+void LogExternalCcResultFetches(bool fetches_completed) {
+  UMA_HISTOGRAM_BOOLEAN("Signin.Reconciler.AllExternalCcResultCompleted",
+                        fetches_completed);
+}
+
 }  // namespace signin_metrics