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

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

Issue 872673008: Fix ipc fuzzer crash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/replay/replay_process.cc
diff --git a/tools/ipc_fuzzer/replay/replay_process.cc b/tools/ipc_fuzzer/replay/replay_process.cc
index 0a954a6ac626eccaf5402fa81240d7085388b8ab..34d972393f9dafc0c5edf934f7c9aec85e805015 100644
--- a/tools/ipc_fuzzer/replay/replay_process.cc
+++ b/tools/ipc_fuzzer/replay/replay_process.cc
@@ -63,6 +63,9 @@ bool ReplayProcess::Initialize(int argc, const char** argv) {
settings.log_file = FILE_PATH_LITERAL("ipc_replay.log");
logging::InitLogging(settings);
+ // Make sure to initialize Mojo before starting the IO thread.
+ InitializeMojo();
+
io_thread_.StartWithOptions(
base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
@@ -72,8 +75,6 @@ bool ReplayProcess::Initialize(int argc, const char** argv) {
kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor);
#endif
- InitializeMojo();
-
return true;
}
« 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