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..068f5cfb6a62b6809eb04c1f634f3d71060a552d 100644 |
| --- a/components/signin/core/browser/signin_metrics.h |
| +++ b/components/signin/core/browser/signin_metrics.h |
| @@ -126,6 +126,29 @@ 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 profile has previously opted out of the promo. |
| + OPTED_OUT, |
| + // The profile is not signed in. |
| + NOT_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_SYNC_DEVICES, |
| + // An error was returned trying to determine the account's devices. |
| + ERROR_FETCHING_SYNC_DEVICES, |
| + // The user has no Sync devices. |
| + ZERO_SYNC_DEVICES, |
| + // The user has no Sync device that was recently active. |
| + NO_ACTIVE_SYNC_DEVICES, |
| + // The user is eligible for the promo. |
| + ELIGIBLE, |
|
anthonyvd
2015/05/14 18:24:19
nit: Maybe put this one first, this way if more re
Mike Lerman
2015/05/14 20:25:33
Done.
|
| + // Always last enumerated type. |
| + NUM_CROSS_DEVICE_PROMO_ELIGIBILITY_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 +194,8 @@ void LogAuthError(GoogleServiceAuthError::State auth_error); |
| void LogSigninConfirmHistogramValue(int action); |
| +void LogXDevicePromoEligible(CrossDevicePromoEligibility metric); |
| + |
| } // namespace signin_metrics |
| #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |