| Index: chrome/browser/ui/webui/sync_promo_handler.cc
|
| diff --git a/chrome/browser/ui/webui/sync_promo_handler.cc b/chrome/browser/ui/webui/sync_promo_handler.cc
|
| index c2fb5689ecfafa0fcd87b0e252acccd1d541c37f..80b0ee0516390da3affb90c35188d2a818172e48 100644
|
| --- a/chrome/browser/ui/webui/sync_promo_handler.cc
|
| +++ b/chrome/browser/ui/webui/sync_promo_handler.cc
|
| @@ -57,6 +57,13 @@ static bool IsValidUserFlowAction(int action) {
|
| action == SYNC_PROMO_LEFT_DURING_THROBBER;
|
| }
|
|
|
| +static void RecordExperimentOutcomesOnSignIn() {
|
| + if (sync_promo_trial::IsExperimentActive())
|
| + sync_promo_trial::RecordUserSignedIn();
|
| + if (sync_promo_trial::IsPartOfBrandTrialToEnable())
|
| + sync_promo_trial::RecordUserSignedInWithTrialBrand();
|
| +}
|
| +
|
| } // namespace
|
|
|
| SyncPromoHandler::SyncPromoHandler(ProfileManager* profile_manager)
|
| @@ -122,16 +129,12 @@ void SyncPromoHandler::RegisterMessages() {
|
| }
|
|
|
| void SyncPromoHandler::ShowGaiaSuccessAndClose() {
|
| - if (sync_promo_trial::IsExperimentActive())
|
| - sync_promo_trial::RecordUserSignedIn();
|
| -
|
| + RecordExperimentOutcomesOnSignIn();
|
| SyncSetupHandler::ShowGaiaSuccessAndClose();
|
| }
|
|
|
| void SyncPromoHandler::ShowGaiaSuccessAndSettingUp() {
|
| - if (sync_promo_trial::IsExperimentActive())
|
| - sync_promo_trial::RecordUserSignedIn();
|
| -
|
| + RecordExperimentOutcomesOnSignIn();
|
| SyncSetupHandler::ShowGaiaSuccessAndSettingUp();
|
| }
|
|
|
|
|