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

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

Issue 1776753002: Fix an IPC fuzzer compile failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8641c14c8c5f97d321548a2386618d9ea1f17ce0..3527f3fb05ab17256921d33d49179876faab8c95 100644
--- a/tools/ipc_fuzzer/message_replay/replay_process.cc
+++ b/tools/ipc_fuzzer/message_replay/replay_process.cc
@@ -77,10 +77,6 @@ bool ReplayProcess::Initialize(int argc, const char** argv) {
}
void ReplayProcess::OpenChannel() {
- std::string channel_name =
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kProcessChannelID);
-
// TODO(morrita): As the adoption of ChannelMojo spreads, this
// criteria has to be updated.
std::string process_type =
@@ -91,9 +87,11 @@ void ReplayProcess::OpenChannel() {
if (should_use_mojo) {
channel_ = IPC::ChannelProxy::Create(
IPC::ChannelMojo::CreateClientFactory(
- io_thread_.task_runner(), channel_name), this,
- io_thread_.task_runner());
+ mojo::edk::GenerateRandomToken()), 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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698