Index: remoting/protocol/libjingle_transport_factory.cc |
diff --git a/remoting/protocol/libjingle_transport_factory.cc b/remoting/protocol/libjingle_transport_factory.cc |
index 3c5b5c81dc9e03d105741bae33be9f965bd860ce..c16677bbe5a1e2f46dee35174921558c5357b669 100644 |
--- a/remoting/protocol/libjingle_transport_factory.cc |
+++ b/remoting/protocol/libjingle_transport_factory.cc |
@@ -312,7 +312,7 @@ LibjingleTransportFactory::LibjingleTransportFactory( |
: http_port_allocator_(port_allocator.get()), |
port_allocator_(port_allocator.Pass()), |
incoming_only_(incoming_only) { |
- jingle_glue::JingleThreadWrapper::EnsureForCurrentThread(); |
+ jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); |
} |
LibjingleTransportFactory::LibjingleTransportFactory() |
@@ -322,7 +322,7 @@ LibjingleTransportFactory::LibjingleTransportFactory() |
port_allocator_(new cricket::BasicPortAllocator( |
network_manager_.get(), socket_factory_.get())), |
incoming_only_(false) { |
- jingle_glue::JingleThreadWrapper::EnsureForCurrentThread(); |
+ jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); |
port_allocator_->set_flags( |
cricket::PORTALLOCATOR_DISABLE_TCP | |
cricket::PORTALLOCATOR_DISABLE_STUN | |