Index: remoting/host/chromoting_host_context.cc |
diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc |
index 6f029438be2c5459c1bf0b098d054ba3db855087..dfc656e66057966190f4bcedc0d28234a521bd20 100644 |
--- a/remoting/host/chromoting_host_context.cc |
+++ b/remoting/host/chromoting_host_context.cc |
@@ -23,20 +23,10 @@ ChromotingHostContext::ChromotingHostContext( |
ChromotingHostContext::~ChromotingHostContext() { |
} |
-void ChromotingHostContext::Start() { |
+bool ChromotingHostContext::Start() { |
// Start all the threads. |
- main_thread_.Start(); |
- encode_thread_.Start(); |
- jingle_thread_.Start(); |
- desktop_thread_.Start(); |
-} |
- |
-void ChromotingHostContext::Stop() { |
- // Stop all the threads. |
- jingle_thread_.Stop(); |
- encode_thread_.Stop(); |
- main_thread_.Stop(); |
- desktop_thread_.Stop(); |
+ return main_thread_.Start() && encode_thread_.Start() && |
+ jingle_thread_.Start() && desktop_thread_.Start(); |
} |
JingleThread* ChromotingHostContext::jingle_thread() { |