Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: mojo/services/network/tcp_connected_socket_impl.cc

Issue 1539863002: Convert Pass()→std::move() in mojo/services/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing forward declare that was masked by pre-existing incorrect #include ordering. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/network/tcp_bound_socket_impl.cc ('k') | mojo/services/network/tcp_server_socket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/tcp_connected_socket_impl.cc
diff --git a/mojo/services/network/tcp_connected_socket_impl.cc b/mojo/services/network/tcp_connected_socket_impl.cc
index 44fba138af40e0e89e96164be8e54888846d3435..e210d814380048b0026a78ab548979f423d1d2c7 100644
--- a/mojo/services/network/tcp_connected_socket_impl.cc
+++ b/mojo/services/network/tcp_connected_socket_impl.cc
@@ -4,6 +4,8 @@
#include "mojo/services/network/tcp_connected_socket_impl.h"
+#include <utility>
+
#include "base/message_loop/message_loop.h"
#include "mojo/services/network/net_adapters.h"
#include "net/base/net_errors.h"
@@ -16,11 +18,11 @@ TCPConnectedSocketImpl::TCPConnectedSocketImpl(
ScopedDataPipeProducerHandle receive_stream,
InterfaceRequest<TCPConnectedSocket> request,
scoped_ptr<mojo::AppRefCount> app_refcount)
- : socket_(socket.Pass()),
- send_stream_(send_stream.Pass()),
- receive_stream_(receive_stream.Pass()),
- binding_(this, request.Pass()),
- app_refcount_(app_refcount.Pass()),
+ : socket_(std::move(socket)),
+ send_stream_(std::move(send_stream)),
+ receive_stream_(std::move(receive_stream)),
+ binding_(this, std::move(request)),
+ app_refcount_(std::move(app_refcount)),
weak_ptr_factory_(this) {
// Queue up async communication.
binding_.set_connection_error_handler([this]() { OnConnectionError(); });
« no previous file with comments | « mojo/services/network/tcp_bound_socket_impl.cc ('k') | mojo/services/network/tcp_server_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698