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

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: Remove self-move checks to avoid triggering clang warning. 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 b2fb4df3f497160d43890efafafcf3f654e52914..7439f1fa9030e6a79cea817a0ce5749a9767161c 100644
--- a/mojo/public/cpp/bindings/lib/interface_endpoint_client.cc
+++ b/mojo/public/cpp/bindings/lib/interface_endpoint_client.cc
@@ -4,6 +4,8 @@
#include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/stl_util.h"
@@ -93,9 +95,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),
@@ -133,7 +135,7 @@ ScopedInterfaceEndpointHandle InterfaceEndpointClient::PassHandle() {
handle_.router()->DetachEndpointClient(handle_);
- return handle_.Pass();
+ return std::move(handle_);
}
void InterfaceEndpointClient::RaiseError() {

Powered by Google App Engine
This is Rietveld 408576698