| Index: mojo/services/network/web_socket_factory_impl.cc
|
| diff --git a/mojo/services/network/web_socket_factory_impl.cc b/mojo/services/network/web_socket_factory_impl.cc
|
| index 90895e9d3b0d0c2ea2db8319f9b1016308f7662f..ecd72725c7b7bf1ad50e4436684ce0f317cf8dda 100644
|
| --- a/mojo/services/network/web_socket_factory_impl.cc
|
| +++ b/mojo/services/network/web_socket_factory_impl.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "mojo/services/network/web_socket_factory_impl.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "mojo/services/network/web_socket_impl.h"
|
|
|
| namespace mojo {
|
| @@ -13,15 +15,14 @@ WebSocketFactoryImpl::WebSocketFactoryImpl(
|
| scoped_ptr<AppRefCount> app_refcount,
|
| InterfaceRequest<WebSocketFactory> request)
|
| : context_(context),
|
| - app_refcount_(app_refcount.Pass()),
|
| - binding_(this, request.Pass()) {
|
| -}
|
| + app_refcount_(std::move(app_refcount)),
|
| + binding_(this, std::move(request)) {}
|
|
|
| WebSocketFactoryImpl::~WebSocketFactoryImpl() {
|
| }
|
|
|
| void WebSocketFactoryImpl::CreateWebSocket(InterfaceRequest<WebSocket> socket) {
|
| - new WebSocketImpl(context_, app_refcount_->Clone(), socket.Pass());
|
| + new WebSocketImpl(context_, app_refcount_->Clone(), std::move(socket));
|
| }
|
|
|
| } // namespace mojo
|
|
|