summaryrefslogtreecommitdiffstats
path: root/chrome/common/profiling.cc
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2014-12-25 09:48:05 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-25 17:48:57 +0000
commit79bf913a9f95ff7249018d0e5179f61608cfb82b (patch)
tree02c8ababb843df5cdd00e4f8911e052486d256b3 /chrome/common/profiling.cc
parentc28b45c1f969a9da103062adb6b8d9789193ddb3 (diff)
downloadchromium_src-79bf913a9f95ff7249018d0e5179f61608cfb82b.zip
chromium_src-79bf913a9f95ff7249018d0e5179f61608cfb82b.tar.gz
chromium_src-79bf913a9f95ff7249018d0e5179f61608cfb82b.tar.bz2
Make callers of CommandLine use it via the base:: namespace, and remove the global alias.
BUG=422426 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/812353003 Cr-Commit-Position: refs/heads/master@{#309644}
Diffstat (limited to 'chrome/common/profiling.cc')
-rw-r--r--chrome/common/profiling.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/common/profiling.cc b/chrome/common/profiling.cc
index 19cbac7..07cc8de 100644
--- a/chrome/common/profiling.cc
+++ b/chrome/common/profiling.cc
@@ -47,7 +47,8 @@ std::string GetProfileName() {
CR_DEFINE_STATIC_LOCAL(std::string, profile_name, ());
if (profile_name.empty()) {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kProfilingFile))
profile_name = command_line.GetSwitchValueASCII(switches::kProfilingFile);
else
@@ -70,7 +71,8 @@ void FlushProfilingData(base::Thread* thread) {
base::debug::FlushProfiling();
static int flush_seconds;
if (!flush_seconds) {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
std::string profiling_flush =
command_line.GetSwitchValueASCII(switches::kProfilingFlush);
if (!profiling_flush.empty()) {
@@ -125,7 +127,8 @@ base::LazyInstance<ProfilingThreadControl>::Leaky
// static
void Profiling::ProcessStarted() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
@@ -165,7 +168,8 @@ void Profiling::ProcessStarted() {
// static
void Profiling::Start() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
bool flush = command_line.HasSwitch(switches::kProfilingFlush);
base::debug::StartProfiling(GetProfileName());