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 89338c8075d45a7a652ec447b7289c517e0ba8b3..3b0c2d5f7c1936ec874cc6c57938c66ca6ef54d4 100644 |
--- a/components/autofill/content/browser/wallet/wallet_service_url.cc |
+++ b/components/autofill/content/browser/wallet/wallet_service_url.cc |
@@ -33,7 +33,8 @@ const char kSandboxWalletSecureServiceUrl[] = |
bool IsWalletProductionEnabled() { |
// If the command line flag exists, it takes precedence. |
- const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
+ const base::CommandLine* command_line = |
+ base::CommandLine::ForCurrentProcess(); |
std::string sandbox_enabled( |
command_line->GetSwitchValueASCII(switches::kWalletServiceUseSandbox)); |
if (!sandbox_enabled.empty()) |
@@ -52,7 +53,8 @@ bool IsWalletProductionEnabled() { |
} |
GURL GetWalletHostUrl() { |
- const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
+ const base::CommandLine& command_line = |
+ *base::CommandLine::ForCurrentProcess(); |
std::string wallet_service_hostname = |
command_line.GetSwitchValueASCII(switches::kWalletServiceUrl); |
if (!wallet_service_hostname.empty()) |
@@ -72,7 +74,8 @@ GURL GetBaseAutocheckoutUrl(size_t user_index) { |
} |
GURL GetBaseSecureUrl() { |
- const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
+ const base::CommandLine& command_line = |
+ *base::CommandLine::ForCurrentProcess(); |
std::string wallet_secure_url = |
command_line.GetSwitchValueASCII(switches::kWalletSecureServiceUrl); |
if (!wallet_secure_url.empty()) |
@@ -83,7 +86,8 @@ GURL GetBaseSecureUrl() { |
} |
GURL GetBaseEncryptedFrontendUrl(size_t user_index) { |
- const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
+ const base::CommandLine& command_line = |
+ *base::CommandLine::ForCurrentProcess(); |
GURL base_url = IsWalletProductionEnabled() || |
command_line.HasSwitch(switches::kWalletServiceUrl) ? |
GetWalletHostUrl() : GetBaseSecureUrl(); |