Index: mojo/services/network/url_loader_factory_impl.cc |
diff --git a/mojo/services/network/url_loader_factory_impl.cc b/mojo/services/network/url_loader_factory_impl.cc |
index 5d2df32e6621b0b7e7928b1cc97a27772d4a140d..b14183c5ff99fa2bc57f1d70d0c4440263c69f5e 100644 |
--- a/mojo/services/network/url_loader_factory_impl.cc |
+++ b/mojo/services/network/url_loader_factory_impl.cc |
@@ -4,6 +4,8 @@ |
#include "mojo/services/network/url_loader_factory_impl.h" |
+#include <utility> |
+ |
#include "mojo/services/network/url_loader_impl.h" |
namespace mojo { |
@@ -13,9 +15,8 @@ URLLoaderFactoryImpl::URLLoaderFactoryImpl( |
scoped_ptr<mojo::AppRefCount> app_refcount, |
InterfaceRequest<URLLoaderFactory> request) |
: context_(context), |
- app_refcount_(app_refcount.Pass()), |
- binding_(this, request.Pass()) { |
-} |
+ app_refcount_(std::move(app_refcount)), |
+ binding_(this, std::move(request)) {} |
URLLoaderFactoryImpl::~URLLoaderFactoryImpl() { |
} |
@@ -26,7 +27,7 @@ void URLLoaderFactoryImpl::CreateURLLoader(InterfaceRequest<URLLoader> loader) { |
// The loader will delete itself when the pipe is closed, unless a request is |
// in progress. In which case, the loader will delete itself when the request |
// is finished. |
- new URLLoaderImpl(context_, loader.Pass(), app_refcount_->Clone()); |
+ new URLLoaderImpl(context_, std::move(loader), app_refcount_->Clone()); |
} |
} // namespace mojo |