+ // TODO(tommi): Change this so that the signaling thread is one of the
+ // parameters to this method.
+ scoped_refptr<base::MessageLoopProxy> signaling_thread;
+ RenderThreadImpl* current = RenderThreadImpl::current();
+ if (current) {
+ PeerConnectionDependencyFactory* pc_factory =
+ current->GetPeerConnectionDependencyFactory();
+ signaling_thread = pc_factory->GetWebRtcSignalingThread();
+ }
+
+ LOG_IF(ERROR, !signaling_thread.get()) << "No signaling thread!";
+