| Index: components/autofill/content/browser/wallet/wallet_service_url.cc
|
| diff --git a/components/autofill/content/browser/wallet/wallet_service_url.cc b/components/autofill/content/browser/wallet/wallet_service_url.cc
|
| index 7bad0197a00c4a2c0480462a6681dd37b0713ca9..e8bd123adbf26a2e2a2122bc5e3177cdcb7d78cd 100644
|
| --- a/components/autofill/content/browser/wallet/wallet_service_url.cc
|
| +++ b/components/autofill/content/browser/wallet/wallet_service_url.cc
|
| @@ -63,6 +63,15 @@ GURL GetBaseSecureUrl() {
|
| return GURL(kSandboxWalletSecureServiceUrl);
|
| }
|
|
|
| +GURL GetBaseEncryptedFrontendUrl() {
|
| + const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| + // TODO(ahutter): Stop checking these switches once we switch over to prod.
|
| + GURL base_url = IsWalletProductionEnabled() ||
|
| + command_line.HasSwitch(switches::kWalletServiceUrl) ?
|
| + GetWalletHostUrl() : GetBaseSecureUrl();
|
| + return base_url.Resolve("online-secure/v2/autocheckout/v1/");
|
| +}
|
| +
|
| } // namespace
|
|
|
| namespace wallet {
|
| @@ -72,7 +81,7 @@ GURL GetGetWalletItemsUrl() {
|
| }
|
|
|
| GURL GetGetFullWalletUrl() {
|
| - return GetBaseAutocheckoutUrl().Resolve("getFullWalletJwtless");
|
| + return GetBaseEncryptedFrontendUrl().Resolve("getFullWalletJwtless?s7e=otp");
|
| }
|
|
|
| GURL GetManageInstrumentsUrl() {
|
| @@ -88,7 +97,8 @@ GURL GetAcceptLegalDocumentsUrl() {
|
| }
|
|
|
| GURL GetAuthenticateInstrumentUrl() {
|
| - return GetBaseAutocheckoutUrl().Resolve("authenticateInstrument");
|
| + return GetBaseEncryptedFrontendUrl()
|
| + .Resolve("authenticateInstrument?s7e=cvn");
|
| }
|
|
|
| GURL GetSendStatusUrl() {
|
| @@ -96,37 +106,14 @@ GURL GetSendStatusUrl() {
|
| }
|
|
|
| GURL GetSaveToWalletUrl() {
|
| - return GetBaseAutocheckoutUrl().Resolve("saveToWallet");
|
| + return GetBaseEncryptedFrontendUrl()
|
| + .Resolve("saveToWallet?s7e=card_number%3Bcvn");
|
| }
|
|
|
| GURL GetPassiveAuthUrl() {
|
| return GetBaseWalletUrl().Resolve("passiveauth?isChromePayments=true");
|
| }
|
|
|
| -GURL GetEncryptionUrl() {
|
| - const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| - // TODO(ahutter): Stop checking these switches once we switch over to prod.
|
| - if (IsWalletProductionEnabled() ||
|
| - command_line.HasSwitch(switches::kWalletServiceUrl)) {
|
| - return GetWalletHostUrl().Resolve(
|
| - "online-secure/temporarydata/cvv?s7e=cvv");
|
| - } else {
|
| - return GetBaseSecureUrl().Resolve(
|
| - "online-secure/temporarydata/cvv?s7e=cvv");
|
| - }
|
| -}
|
| -
|
| -GURL GetEscrowUrl() {
|
| - const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| - // TODO(ahutter): Stop checking these switches once we switch over to prod.
|
| - if (IsWalletProductionEnabled() ||
|
| - command_line.HasSwitch(switches::kWalletServiceUrl)) {
|
| - return GetBaseSecureUrl().Resolve("dehEfe?s7e=cardNumber%3Bcvv");
|
| - } else {
|
| - return GetBaseSecureUrl().Resolve("checkout/dehEfe?s7e=cardNumber%3Bcvv");
|
| - }
|
| -}
|
| -
|
| GURL GetSignInUrl() {
|
| GURL url(GaiaUrls::GetInstance()->service_login_url());
|
| url = net::AppendQueryParameter(url, "service", "toolbar");
|
|
|