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

Unified Diff: remoting/host/chromoting_host_context.cc

Issue 9582031: Don't crash in ~HostNPScriptObject() when the object wasn't initialized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 10 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/chromoting_host_context.h ('k') | remoting/host/chromoting_host_context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « remoting/host/chromoting_host_context.h ('k') | remoting/host/chromoting_host_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698