Index: mojo/public/cpp/bindings/lib/interface_endpoint_client.cc |
diff --git a/mojo/public/cpp/bindings/lib/interface_endpoint_client.cc b/mojo/public/cpp/bindings/lib/interface_endpoint_client.cc |
index 9574d7567ddd5f95842f070a579e618733536bb0..79c25b51a05ea28a93e43e64c668286b4b58bda0 100644 |
--- a/mojo/public/cpp/bindings/lib/interface_endpoint_client.cc |
+++ b/mojo/public/cpp/bindings/lib/interface_endpoint_client.cc |
@@ -5,6 +5,7 @@ |
#include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" |
#include <stdint.h> |
+#include <utility> |
#include "base/bind.h" |
#include "base/macros.h" |
@@ -96,9 +97,9 @@ InterfaceEndpointClient::InterfaceEndpointClient( |
ScopedInterfaceEndpointHandle handle, |
MessageReceiverWithResponderStatus* receiver, |
scoped_ptr<MessageFilter> payload_validator) |
- : handle_(handle.Pass()), |
+ : handle_(std::move(handle)), |
incoming_receiver_(receiver), |
- payload_validator_(payload_validator.Pass()), |
+ payload_validator_(std::move(payload_validator)), |
thunk_(this), |
next_request_id_(1), |
encountered_error_(false), |
@@ -136,7 +137,7 @@ ScopedInterfaceEndpointHandle InterfaceEndpointClient::PassHandle() { |
handle_.router()->DetachEndpointClient(handle_); |
- return handle_.Pass(); |
+ return std::move(handle_); |
} |
void InterfaceEndpointClient::RaiseError() { |