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

Unified Diff: mojo/public/cpp/bindings/lib/interface_endpoint_client.cc

Issue 1535943002: Convert Pass()→std::move() in //mojo/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Regenerate correctly 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
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() {
« no previous file with comments | « mojo/public/cpp/bindings/lib/control_message_proxy.cc ('k') | mojo/public/cpp/bindings/lib/interface_ptr_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698