Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: components/autofill/content/browser/wallet/wallet_service_url.cc

Issue 25127002: Use production Wallet service URL by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698