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

Unified Diff: mojo/public/cpp/bindings/lib/router.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
« no previous file with comments | « mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc ('k') | mojo/public/cpp/bindings/map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/router.cc
diff --git a/mojo/public/cpp/bindings/lib/router.cc b/mojo/public/cpp/bindings/lib/router.cc
index fbc88be883fc0feea87f8349ac6e2a7fd6954363..aa9cddfc65d4f8b8df39bec1c08d9c638d2c7188 100644
--- a/mojo/public/cpp/bindings/lib/router.cc
+++ b/mojo/public/cpp/bindings/lib/router.cc
@@ -5,6 +5,7 @@
#include "mojo/public/cpp/bindings/lib/router.h"
#include <stdint.h>
+#include <utility>
#include "mojo/public/cpp/environment/logging.h"
@@ -79,8 +80,10 @@ Router::Router(ScopedMessagePipeHandle message_pipe,
FilterChain filters,
const MojoAsyncWaiter* waiter)
: thunk_(this),
- filters_(filters.Pass()),
- connector_(message_pipe.Pass(), Connector::SINGLE_THREADED_SEND, waiter),
+ filters_(std::move(filters)),
+ connector_(std::move(message_pipe),
+ Connector::SINGLE_THREADED_SEND,
+ waiter),
weak_self_(this),
incoming_receiver_(nullptr),
next_request_id_(0),
« no previous file with comments | « mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc ('k') | mojo/public/cpp/bindings/map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698