| Index: remoting/protocol/connection_to_host.cc
|
| diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
|
| index 9d00f8d82ce44d6b64e8531415f74fd350bcbad4..879e1b22402ffaeff3231763c53881bc65db7681 100644
|
| --- a/remoting/protocol/connection_to_host.cc
|
| +++ b/remoting/protocol/connection_to_host.cc
|
| @@ -124,14 +124,14 @@ void ConnectionToHost::OnSessionManagerReady() {
|
| DCHECK(message_loop_->BelongsToCurrentThread());
|
|
|
| // After SessionManager is initialized we can try to connect to the host.
|
| - CandidateSessionConfig* candidate_config =
|
| + scoped_ptr<CandidateSessionConfig> candidate_config =
|
| CandidateSessionConfig::CreateDefault();
|
| - V1ClientAuthenticator* authenticator =
|
| - new V1ClientAuthenticator(signal_strategy_->GetLocalJid(), access_code_);
|
| - session_.reset(session_manager_->Connect(
|
| - host_jid_, authenticator, candidate_config,
|
| + scoped_ptr<Authenticator> authenticator(
|
| + new V1ClientAuthenticator(signal_strategy_->GetLocalJid(), access_code_));
|
| + session_ = session_manager_->Connect(
|
| + host_jid_, authenticator.Pass(), candidate_config.Pass(),
|
| base::Bind(&ConnectionToHost::OnSessionStateChange,
|
| - base::Unretained(this))));
|
| + base::Unretained(this)));
|
| }
|
|
|
| void ConnectionToHost::OnIncomingSession(
|
|
|