Index: remoting/protocol/connection_to_host_impl.cc |
diff --git a/remoting/protocol/connection_to_host_impl.cc b/remoting/protocol/connection_to_host_impl.cc |
index bcca1b0fdb738651ac870071a0c4834b77b96b9e..c17b41efffe74b5a0ded0a187d7e520e8bcc8f23 100644 |
--- a/remoting/protocol/connection_to_host_impl.cc |
+++ b/remoting/protocol/connection_to_host_impl.cc |
@@ -94,9 +94,9 @@ void ConnectionToHostImpl::Connect( |
signal_strategy_->AddListener(this); |
session_manager_.reset(new JingleSessionManager( |
- make_scoped_ptr(new IceTransportFactory(transport_context)))); |
+ make_scoped_ptr(new IceTransportFactory(transport_context)), |
+ signal_strategy)); |
session_manager_->set_protocol_config(candidate_config_->Clone()); |
- session_manager_->Init(signal_strategy_, this); |
SetState(CONNECTING, OK); |
@@ -188,14 +188,6 @@ bool ConnectionToHostImpl::OnSignalStrategyIncomingStanza( |
return false; |
} |
-void ConnectionToHostImpl::OnIncomingSession( |
- Session* session, |
- SessionManager::IncomingSessionResponse* response) { |
- DCHECK(CalledOnValidThread()); |
- // Client always rejects incoming sessions. |
- *response = SessionManager::DECLINE; |
-} |
- |
void ConnectionToHostImpl::OnSessionStateChange(Session::State state) { |
DCHECK(CalledOnValidThread()); |
DCHECK(event_callback_); |