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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params.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/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
index 12a463c95d4debed1af1b64bd28cf17aca48e81e..743c844b0acf7c59a37c6d1bd41f2db2c25028d3 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
@@ -49,7 +49,7 @@ namespace data_reduction_proxy {
bool DataReductionProxyParams::IsIncludedInAlternativeFieldTrial() {
const std::string group_name = base::FieldTrialList::FindFullName(
"DataCompressionProxyAlternativeConfiguration");
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
data_reduction_proxy::switches::kEnableDataReductionProxyAlt)) {
return true;
}
@@ -241,7 +241,8 @@ bool DataReductionProxyParams::Init(bool allowed,
}
void DataReductionProxyParams::InitWithoutChecks() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
std::string origin;
if (!command_line.HasSwitch(switches::kDisableDataReductionProxyDev)) {
origin = command_line.GetSwitchValueASCII(
@@ -384,7 +385,8 @@ bool DataReductionProxyParams::IsBypassedByDataReductionProxyLocalRules(
}
std::string DataReductionProxyParams::GetDefaultDevOrigin() const {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kDisableDataReductionProxyDev))
return std::string();
if (command_line.HasSwitch(switches::kEnableDataReductionProxyDev) ||
@@ -396,7 +398,8 @@ std::string DataReductionProxyParams::GetDefaultDevOrigin() const {
}
std::string DataReductionProxyParams::GetDefaultDevFallbackOrigin() const {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kDisableDataReductionProxyDev))
return std::string();
if (command_line.HasSwitch(switches::kEnableDataReductionProxyDev) ||

Powered by Google App Engine
This is Rietveld 408576698