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

Unified Diff: tools/ipc_fuzzer/replay/replay_process.cc

Issue 819223002: 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
« no previous file with comments | « tools/ipc_fuzzer/mutate/mutate.cc ('k') | tools/perf/clear_system_cache/clear_system_cache_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/replay/replay_process.cc
diff --git a/tools/ipc_fuzzer/replay/replay_process.cc b/tools/ipc_fuzzer/replay/replay_process.cc
index 1e6f4c28c53b6d41a94078ad463726560e52abbe..500e4d4779a3a3d428fc23f2e8f1c2e4ebcc14ef 100644
--- a/tools/ipc_fuzzer/replay/replay_process.cc
+++ b/tools/ipc_fuzzer/replay/replay_process.cc
@@ -28,10 +28,10 @@ ReplayProcess::~ReplayProcess() {
}
bool ReplayProcess::Initialize(int argc, const char** argv) {
- CommandLine::Init(argc, argv);
+ base::CommandLine::Init(argc, argv);
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kIpcFuzzerTestcase)) {
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kIpcFuzzerTestcase)) {
LOG(ERROR) << "This binary shouldn't be executed directly, "
<< "please use tools/ipc_fuzzer/play_testcase.py";
return false;
@@ -52,7 +52,7 @@ bool ReplayProcess::Initialize(int argc, const char** argv) {
void ReplayProcess::OpenChannel() {
std::string channel_name =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessChannelID);
channel_ = IPC::ChannelProxy::Create(channel_name,
@@ -62,8 +62,9 @@ void ReplayProcess::OpenChannel() {
}
bool ReplayProcess::OpenTestcase() {
- base::FilePath path = CommandLine::ForCurrentProcess()->GetSwitchValuePath(
- switches::kIpcFuzzerTestcase);
+ base::FilePath path =
+ base::CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ switches::kIpcFuzzerTestcase);
return MessageFile::Read(path, &messages_);
}
« no previous file with comments | « tools/ipc_fuzzer/mutate/mutate.cc ('k') | tools/perf/clear_system_cache/clear_system_cache_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698