Index: remoting/host/win/host_service.cc |
diff --git a/remoting/host/win/host_service.cc b/remoting/host/win/host_service.cc |
index 145c9302714a57278f304ce4c142a026616d0f53..87088fe39b70047694f6a0a14892e7343890e105 100644 |
--- a/remoting/host/win/host_service.cc |
+++ b/remoting/host/win/host_service.cc |
@@ -197,15 +197,6 @@ int HostService::Run() { |
} |
void HostService::RunMessageLoop(MessageLoop* message_loop) { |
-#if defined(REMOTING_MULTI_PROCESS) |
- |
- child_ = DaemonProcess::Create( |
- main_task_runner_, |
- base::Bind(&HostService::OnChildStopped, |
- base::Unretained(this))).PassAs<Stoppable>(); |
- |
-#else // !defined(REMOTING_MULTI_PROCESS) |
- |
// Launch the I/O thread. |
base::Thread io_thread(kIoThreadName); |
base::Thread::Options io_thread_options(MessageLoop::TYPE_IO, 0); |
@@ -215,6 +206,16 @@ void HostService::RunMessageLoop(MessageLoop* message_loop) { |
return; |
} |
+#if defined(REMOTING_MULTI_PROCESS) |
+ |
+ child_ = DaemonProcess::Create( |
+ main_task_runner_, |
+ io_thread.message_loop_proxy(), |
+ base::Bind(&HostService::OnChildStopped, |
+ base::Unretained(this))).PassAs<Stoppable>(); |
+ |
+#else // !defined(REMOTING_MULTI_PROCESS) |
+ |
// Create the session process launcher. |
child_.reset(new WtsSessionProcessLauncher( |
base::Bind(&HostService::OnChildStopped, base::Unretained(this)), |