Chromium Code Reviews| Index: components/signin/core/browser/signin_metrics.h |
| diff --git a/components/signin/core/browser/signin_metrics.h b/components/signin/core/browser/signin_metrics.h |
| index aa043c25c3e2b3beafb071880f71282bd75ad6e3..a5848836918fe19fd8b072aadb7ff45138a0bc32 100644 |
| --- a/components/signin/core/browser/signin_metrics.h |
| +++ b/components/signin/core/browser/signin_metrics.h |
| @@ -126,6 +126,43 @@ enum AccountReauth { |
| HISTOGRAM_REAUTH_MAX |
| }; |
| +// Enum values used for "Signin.XDevicePromo.Eligible" histogram, which tracks |
| +// the reasons for which a profile is or is not eligible for the promo. |
| +enum CrossDevicePromoEligibility { |
| + // The user is eligible for the promo. |
| + ELIGIBLE, |
| + // The profile has previously opted out of the promo. |
| + OPTED_OUT, |
| + // The profile is already signed in. |
| + SIGNED_IN, |
| + // The profile does not have a single, peristent GAIA cookie. |
| + NOT_SINGLE_GAIA_ACCOUNT, |
| + // Yet to determine how many devices the user has. |
| + UNKNOWN_COUNT_DEVICES, |
| + // An error was returned trying to determine the account's devices. |
| + ERROR_FETCHING_DEVICE_ACTIVITY, |
| + // The call to get device activity was throttled, and never executed. |
| + THROTTLED_FETCHING_DEVICE_ACTIVITY, |
| + // The user has no devices. |
| + ZERO_DEVICES, |
| + // The user has no device that was recently active. |
| + NO_ACTIVE_DEVICES, |
| + // Always last enumerated type. |
| + NUM_CROSS_DEVICE_PROMO_ELIGIBILITY_METRICS |
| +}; |
| + |
| +// Enum reasons the CrossDevicePromo couldn't initialize, or that it succeeded. |
| +enum CrossDevicePromoInitialized { |
| + // The promo was initialized successfully. |
| + INITIALIZED, |
| + // The profile is opted out, so the promo didn't initialize. |
| + UNINITIALIZED_OPTED_OUT, |
| + // Unable to read the variations configuration. |
| + NO_VARIATIONS_CONFIG, |
| + // Always the last enumerated type. |
| + NUM_CROSS_DEVICE_PROMO_INITIALIZED_METRICS |
| +}; |
| + |
| // Log to UMA histograms and UserCounts stats about a single execution of the |
| // AccountReconciler. |
| // |total_number_accounts| - How many accounts are in the browser for this |
| @@ -171,6 +208,12 @@ void LogAuthError(GoogleServiceAuthError::State auth_error); |
| void LogSigninConfirmHistogramValue(int action); |
| +void LogXDevicePromoEligible(CrossDevicePromoEligibility metric); |
| + |
| +void LogXDevicePromoInitialized(CrossDevicePromoInitialized metric); |
| + |
| +void LogBrowsingSessionDuration(const base::Time& previous_activity); |
|
Alexei Svitkine (slow)
2015/05/19 19:59:44
nit: previous_activity_time
Mike Lerman
2015/05/19 20:54:04
Done.
|
| + |
| } // namespace signin_metrics |
| #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |