Index: remoting/host/fake_host_extension.cc |
diff --git a/remoting/host/fake_host_extension.cc b/remoting/host/fake_host_extension.cc |
index 34c31f928d83759c29e534101a91c104d8a96d0d..8e02d2fa5dcf9cea868e3921b42015257464c224 100644 |
--- a/remoting/host/fake_host_extension.cc |
+++ b/remoting/host/fake_host_extension.cc |
@@ -92,8 +92,7 @@ scoped_ptr<HostExtensionSession> FakeExtension::CreateExtensionSession( |
protocol::ClientStub* client_stub) { |
DCHECK(!was_instantiated()); |
was_instantiated_ = true; |
- scoped_ptr<HostExtensionSession> session(new Session(this, message_type_)); |
- return session.Pass(); |
+ return make_scoped_ptr(new Session(this, message_type_)); |
} |
} // namespace remoting |