| 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 d6c901844d28300428af349a0555aded28c39c54..c56d5864fa8089cacacca514bffd75bae58932d1 100644
|
| --- a/components/autofill/content/browser/wallet/wallet_service_url.cc
|
| +++ b/components/autofill/content/browser/wallet/wallet_service_url.cc
|
| @@ -27,9 +27,16 @@ const char kSandboxWalletSecureServiceUrl[] =
|
| "https://wallet-web.sandbox.google.com/";
|
|
|
| bool IsWalletProductionEnabled() {
|
| - const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| - return command_line.HasSwitch(switches::kWalletServiceUseProd) ||
|
| - base::FieldTrialList::FindFullName("WalletProductionService") == "Yes";
|
| + const CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| + std::string sandbox_enabled(
|
| + command_line->GetSwitchValueASCII(switches::kWalletServiceUseSandbox));
|
| + if (!sandbox_enabled.empty())
|
| + return sandbox_enabled != "1";
|
| +#if defined(OS_MACOSX)
|
| + return false;
|
| +#else
|
| + return true;
|
| +#endif
|
| }
|
|
|
| GURL GetWalletHostUrl() {
|
|
|