| Index: remoting/host/cast_extension_session.cc
|
| diff --git a/remoting/host/cast_extension_session.cc b/remoting/host/cast_extension_session.cc
|
| index 31087c3a1a4f0855c17dbeb6ffc15dbb9cbc18d5..bc711f0f1cc9cdd61e43cf8493d1eb7890fdbf0c 100644
|
| --- a/remoting/host/cast_extension_session.cc
|
| +++ b/remoting/host/cast_extension_session.cc
|
| @@ -181,7 +181,7 @@ scoped_ptr<CastExtensionSession> CastExtensionSession::Create(
|
| !cast_extension_session->InitializePeerConnection()) {
|
| return nullptr;
|
| }
|
| - return cast_extension_session.Pass();
|
| + return cast_extension_session;
|
| }
|
|
|
| void CastExtensionSession::OnCreateSessionDescription(
|
| @@ -235,7 +235,7 @@ void CastExtensionSession::OnCreateVideoCapturer(
|
|
|
| if (received_offer_) {
|
| has_grabbed_capturer_ = true;
|
| - if (SetupVideoStream(capturer->Pass())) {
|
| + if (SetupVideoStream(std::move(*capturer))) {
|
| peer_connection_->CreateAnswer(create_session_desc_observer_, nullptr);
|
| } else {
|
| has_grabbed_capturer_ = false;
|
| @@ -527,7 +527,7 @@ bool CastExtensionSession::SetupVideoStream(
|
| }
|
|
|
| scoped_ptr<WebrtcVideoCapturerAdapter> video_capturer_adapter(
|
| - new WebrtcVideoCapturerAdapter(desktop_capturer.Pass()));
|
| + new WebrtcVideoCapturerAdapter(std::move(desktop_capturer)));
|
|
|
| // Set video stream constraints.
|
| webrtc::FakeConstraints video_constraints;
|
|
|