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

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

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: . Created 5 years, 1 month 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/multiplex_router.cc
diff --git a/mojo/public/cpp/bindings/lib/multiplex_router.cc b/mojo/public/cpp/bindings/lib/multiplex_router.cc
index c09fc17ff4b2ad9deee6d513589f6b5bd1a8f524..69defac29fa0ce6676fba68ae975bf50ac7866f6 100644
--- a/mojo/public/cpp/bindings/lib/multiplex_router.cc
+++ b/mojo/public/cpp/bindings/lib/multiplex_router.cc
@@ -4,6 +4,8 @@
#include "mojo/public/cpp/bindings/lib/multiplex_router.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/stl_util.h"
@@ -49,7 +51,7 @@ class MultiplexRouter::InterfaceEndpoint
void set_task_runner(
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
router_lock_->AssertAcquired();
- task_runner_ = task_runner.Pass();
+ task_runner_ = std::move(task_runner);
}
InterfaceEndpointClient* client() const { return client_; }

Powered by Google App Engine
This is Rietveld 408576698