| Index: remoting/protocol/pepper_session_manager.cc
|
| diff --git a/remoting/protocol/pepper_session_manager.cc b/remoting/protocol/pepper_session_manager.cc
|
| index 877b650b00c0729adf8c746df2700082c47370d3..09e0c6630c2eff03b2e8c5e4a61a66df6381b4fb 100644
|
| --- a/remoting/protocol/pepper_session_manager.cc
|
| +++ b/remoting/protocol/pepper_session_manager.cc
|
| @@ -70,16 +70,16 @@ void PepperSessionManager::OnJingleInfo(
|
| }
|
| }
|
|
|
| -Session* PepperSessionManager::Connect(
|
| +scoped_ptr<Session> PepperSessionManager::Connect(
|
| const std::string& host_jid,
|
| - Authenticator* authenticator,
|
| - CandidateSessionConfig* config,
|
| + scoped_ptr<Authenticator> authenticator,
|
| + scoped_ptr<CandidateSessionConfig> config,
|
| const Session::StateChangeCallback& state_change_callback) {
|
| - PepperSession* session = new PepperSession(this);
|
| - session->StartConnection(host_jid, authenticator, config,
|
| + scoped_ptr<PepperSession> session(new PepperSession(this));
|
| + session->StartConnection(host_jid, authenticator.Pass(), config.Pass(),
|
| state_change_callback);
|
| - sessions_[session->session_id_] = session;
|
| - return session;
|
| + sessions_[session->session_id_] = session.get();
|
| + return scoped_ptr<Session>(session.Pass());
|
| }
|
|
|
| void PepperSessionManager::Close() {
|
|
|