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

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

Issue 762723003: Prefix CommandLine usage with base namespace (Part 8: components) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 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();

Powered by Google App Engine
This is Rietveld 408576698