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

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
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..b18cd9ea9382ee45c2aae4e24cda90534ccaf11b 100644
--- a/remoting/host/chromoting_host_context.cc
+++ b/remoting/host/chromoting_host_context.cc
@@ -23,12 +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();
+ return main_thread_.Start() && encode_thread_.Start() &&
+ jingle_thread_.Start() && desktop_thread_.Start();
}
void ChromotingHostContext::Stop() {

Powered by Google App Engine
This is Rietveld 408576698