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

IPC Fuzzer: Make it work with --disable-mojo-channel

BUG=453571
R=inferno@chromium.org, tsepez@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#314263}
parent ed3411d0
...@@ -89,6 +89,7 @@ def main(): ...@@ -89,6 +89,7 @@ def main():
'--ipc-fuzzer-testcase=' + args.testcase, '--ipc-fuzzer-testcase=' + args.testcase,
'--no-sandbox', '--no-sandbox',
'--disable-kill-after-bad-ipc', '--disable-kill-after-bad-ipc',
'--disable-mojo-channel',
] ]
if args.gdb_browser: if args.gdb_browser:
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "base/posix/global_descriptors.h" #include "base/posix/global_descriptors.h"
#include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_switches.h"
#include "content/public/common/content_switches.h" #include "content/public/common/content_switches.h"
#include "content/public/common/mojo_channel_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" #include "ipc/mojo/ipc_channel_mojo.h"
...@@ -89,7 +90,7 @@ void ReplayProcess::OpenChannel() { ...@@ -89,7 +90,7 @@ void ReplayProcess::OpenChannel() {
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessType); switches::kProcessType);
bool should_use_mojo = process_type == switches::kRendererProcess && bool should_use_mojo = process_type == switches::kRendererProcess &&
IPC::ChannelMojo::ShouldBeUsed(); content::ShouldUseMojoChannel();
if (should_use_mojo) { if (should_use_mojo) {
channel_ = IPC::ChannelProxy::Create( channel_ = IPC::ChannelProxy::Create(
IPC::ChannelMojo::CreateClientFactory(channel_name), this, IPC::ChannelMojo::CreateClientFactory(channel_name), this,
......
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