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

Unified Diff: remoting/host/win/host_service.cc

Issue 10837292: [Chromoting] Moving the I/O thread out of DaemonProcess (so it can be shared if needed). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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 | « remoting/host/daemon_process_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)),
« no previous file with comments | « remoting/host/daemon_process_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698