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

Unified Diff: chrome/browser/metrics/variations/variations_service.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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: chrome/browser/metrics/variations/variations_service.cc
diff --git a/chrome/browser/metrics/variations/variations_service.cc b/chrome/browser/metrics/variations/variations_service.cc
index 93ddf6bcf0697f8fc530dffff76eeb9e9014e916..56df9266e79f8457799c6bb3e125d5374d1a56ce 100644
--- a/chrome/browser/metrics/variations/variations_service.cc
+++ b/chrome/browser/metrics/variations/variations_service.cc
@@ -80,7 +80,7 @@ variations::Study_Channel GetChannelForVariations() {
break;
}
const std::string forced_channel =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kFakeVariationsChannel);
if (forced_channel == "stable")
return variations::Study_Channel_STABLE;
@@ -373,8 +373,9 @@ void VariationsService::SetCreateTrialsFromSeedCalledForTesting(bool called) {
// static
GURL VariationsService::GetVariationsServerURL(
PrefService* policy_pref_service) {
- std::string server_url_string(CommandLine::ForCurrentProcess()->
- GetSwitchValueASCII(switches::kVariationsServerURL));
+ std::string server_url_string(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kVariationsServerURL));
if (server_url_string.empty())
server_url_string = kDefaultVariationsServerURL;
GURL server_url = GURL(server_url_string);
@@ -428,7 +429,7 @@ scoped_ptr<VariationsService> VariationsService::Create(
#if !defined(GOOGLE_CHROME_BUILD)
// Unless the URL was provided, unsupported builds should return NULL to
// indicate that the service should not be used.
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kVariationsServerURL)) {
DVLOG(1) << "Not creating VariationsService in unofficial build without --"
<< switches::kVariationsServerURL << " specified.";
« no previous file with comments | « chrome/browser/metrics/thread_watcher_unittest.cc ('k') | chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698