Commit cbe22765 authored by morrita's avatar morrita Committed by Commit bot

Revert of IPC Fuzzer: Make ChannelMojo work when --enable-channel-mojo is...

Revert of IPC Fuzzer: Make ChannelMojo work when --enable-channel-mojo is givne (patchset #1 id:1 of https://codereview.chromium.org/885143002/)

Reason for revert:
The flag was wrong. It needs finer configuration.

Original issue's description:
> IPC Fuzzer: Make ChannelMojo work when --enable-channel-mojo is given
>
> This adds an option to enable ChannelMojo on ipc_fuzzer.
>
> R=inferno@chormium.org, mbarbella@chromium.org
> BUG=453571
>
> Committed: https://crrev.com/9b1b6da70aab6c78bbecb5f86081ec5abc101f86
> Cr-Commit-Position: refs/heads/master@{#313840}

TBR=inferno@chormium.org,tsepez@chromium.org,mbarbella@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=453571

Review URL: https://codereview.chromium.org/893603004

Cr-Commit-Position: refs/heads/master@{#313953}
parent c765343e
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
'type': 'executable', 'type': 'executable',
'dependencies': [ 'dependencies': [
'../message_lib/message_lib.gyp:ipc_message_lib', '../message_lib/message_lib.gyp:ipc_message_lib',
'../../../ipc/mojo/ipc_mojo.gyp:ipc_mojo'
], ],
'sources': [ 'sources': [
'replay.cc', 'replay.cc',
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_switches.h"
#include "ipc/ipc_descriptors.h" #include "ipc/ipc_descriptors.h"
#include "ipc/ipc_switches.h" #include "ipc/ipc_switches.h"
#include "ipc/mojo/ipc_channel_mojo.h"
namespace ipc_fuzzer { namespace ipc_fuzzer {
...@@ -67,19 +66,10 @@ void ReplayProcess::OpenChannel() { ...@@ -67,19 +66,10 @@ void ReplayProcess::OpenChannel() {
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessChannelID); switches::kProcessChannelID);
bool should_use_mojo = base::CommandLine::ForCurrentProcess()->HasSwitch( channel_ = IPC::ChannelProxy::Create(channel_name,
"enable-channel-mojo"); IPC::Channel::MODE_CLIENT,
if (should_use_mojo) { this,
channel_ = IPC::ChannelProxy::Create( io_thread_.message_loop_proxy());
IPC::ChannelMojo::CreateClientFactory(channel_name),
this,
io_thread_.message_loop_proxy());
} else {
channel_ = IPC::ChannelProxy::Create(channel_name,
IPC::Channel::MODE_CLIENT,
this,
io_thread_.message_loop_proxy());
}
} }
bool ReplayProcess::OpenTestcase() { bool ReplayProcess::OpenTestcase() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment