Index: remoting/client/chromoting_client.cc |
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc |
index 130e3987eedf0c62a329f46d7c9e7e50a5264ab9..48b8a21ec3d289c91e1657ffd584fa22cc3648b8 100644 |
--- a/remoting/client/chromoting_client.cc |
+++ b/remoting/client/chromoting_client.cc |
@@ -6,6 +6,7 @@ |
#include "base/bind.h" |
#include "base/message_loop.h" |
+#include "jingle/glue/thread_wrapper.h" |
#include "remoting/base/tracer.h" |
#include "remoting/client/chromoting_view.h" |
#include "remoting/client/client_context.h" |
@@ -46,6 +47,8 @@ void ChromotingClient::Start(scoped_refptr<XmppProxy> xmpp_proxy) { |
return; |
} |
+ jingle_glue::JingleThreadWrapper::EnsureForCurrentThread(); |
+ |
connection_->Connect(xmpp_proxy, config_.local_jid, config_.host_jid, |
config_.host_public_key, config_.access_code, |
this, this, this); |
@@ -180,7 +183,7 @@ void ChromotingClient::OnConnectionFailed(protocol::ConnectionToHost* conn) { |
} |
MessageLoop* ChromotingClient::message_loop() { |
- return context_->jingle_thread()->message_loop(); |
+ return context_->network_message_loop(); |
} |
void ChromotingClient::SetConnectionState(ConnectionState s) { |