Index: tools/ipc_fuzzer/message_replay/replay_process.cc |
diff --git a/tools/ipc_fuzzer/message_replay/replay_process.cc b/tools/ipc_fuzzer/message_replay/replay_process.cc |
index 9e097fcf63580c733bc36be2ad69207bae50fc0b..1d79cc90119145eaef2de71cca2802dcb515d31c 100644 |
--- a/tools/ipc_fuzzer/message_replay/replay_process.cc |
+++ b/tools/ipc_fuzzer/message_replay/replay_process.cc |
@@ -19,7 +19,6 @@ |
#include "content/public/common/mojo_channel_switches.h" |
#include "ipc/ipc_channel_mojo.h" |
#include "ipc/ipc_descriptors.h" |
-#include "ipc/ipc_switches.h" |
#include "mojo/edk/embedder/embedder.h" |
#include "mojo/edk/embedder/platform_channel_pair.h" |
#include "mojo/edk/embedder/scoped_ipc_support.h" |
@@ -103,31 +102,13 @@ bool ReplayProcess::Initialize(int argc, const char** argv) { |
} |
void ReplayProcess::OpenChannel() { |
- // TODO(morrita): As the adoption of ChannelMojo spreads, this |
- // criteria has to be updated. |
- std::string process_type = |
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
- switches::kProcessType); |
- bool should_use_mojo = process_type == switches::kRendererProcess; |
- if (should_use_mojo) { |
- std::string token = |
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
- switches::kMojoChannelToken); |
- channel_ = IPC::ChannelProxy::Create( |
- IPC::ChannelMojo::CreateClientFactory( |
- mojo::edk::CreateChildMessagePipe( |
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
- switches::kMojoChannelToken)), |
- io_thread_.task_runner()), |
- this, io_thread_.task_runner()); |
- } else { |
- std::string channel_name = |
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
- switches::kProcessChannelID); |
- channel_ = |
- IPC::ChannelProxy::Create(channel_name, IPC::Channel::MODE_CLIENT, this, |
- io_thread_.task_runner()); |
- } |
+ channel_ = IPC::ChannelProxy::Create( |
+ IPC::ChannelMojo::CreateClientFactory( |
+ mojo::edk::CreateChildMessagePipe( |
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
+ switches::kMojoChannelToken)), |
+ io_thread_.task_runner()), |
+ this, io_thread_.task_runner()); |
} |
bool ReplayProcess::OpenTestcase() { |