Commit e4cbce0f authored by Sujie Zhu's avatar Sujie Zhu Committed by Commit Bot

[Local card migration] Change the active experiment

We should not include the prompt experiment here because local card
migration doesnot have the required messaging to show the shorten tos.

Bug: 852904
Change-Id: I4c3c7a9bcee1d24a97dbd23dea2924cd3eef1a3b
Reviewed-on: https://chromium-review.googlesource.com/1197370
Commit-Queue: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Reviewed-by: default avatarSebastien Seguin-Gagnon <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587778}
parent ea3bb790
...@@ -76,20 +76,13 @@ void LocalCardMigrationManager::AttemptToOfferLocalCardMigration( ...@@ -76,20 +76,13 @@ void LocalCardMigrationManager::AttemptToOfferLocalCardMigration(
if (!payments_client_) if (!payments_client_)
return; return;
migration_request_ = payments::PaymentsClient::MigrationRequestDetails(); migration_request_ = payments::PaymentsClient::MigrationRequestDetails();
std::vector<const char*> active_experiments;
// Payments server determines which version of the legal message to show based
// on the existence of this experiment flag.
if (features::IsAutofillUpstreamUpdatePromptExplanationExperimentEnabled()) {
active_experiments.push_back(
features::kAutofillUpstreamUpdatePromptExplanation.name);
}
// Don't send pan_first_six, as potentially migrating multiple local cards at // Don't send pan_first_six, as potentially migrating multiple local cards at
// once will negate its usefulness. // once will negate its usefulness.
payments_client_->GetUploadDetails( payments_client_->GetUploadDetails(
std::vector<AutofillProfile>(), GetDetectedValues(), std::vector<AutofillProfile>(), GetDetectedValues(),
/*pan_first_six=*/std::string(), active_experiments, app_locale_, /*pan_first_six=*/std::string(),
/*active_experiments=*/std::vector<const char*>(), app_locale_,
base::BindOnce(&LocalCardMigrationManager::OnDidGetUploadDetails, base::BindOnce(&LocalCardMigrationManager::OnDidGetUploadDetails,
weak_ptr_factory_.GetWeakPtr(), is_from_settings_page), weak_ptr_factory_.GetWeakPtr(), is_from_settings_page),
payments::kMigrateCardsBillableServiceNumber); payments::kMigrateCardsBillableServiceNumber);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment