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

Unified Diff: third_party/mojo/src/mojo/edk/system/channel.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: third_party/mojo/src/mojo/edk/system/channel.cc
diff --git a/third_party/mojo/src/mojo/edk/system/channel.cc b/third_party/mojo/src/mojo/edk/system/channel.cc
index b0101b5c9e3279ec9417862aea15bd7896eca6bc..0b3e9f85d27f6dca01e17d1989e1308abbb3723d 100644
--- a/third_party/mojo/src/mojo/edk/system/channel.cc
+++ b/third_party/mojo/src/mojo/edk/system/channel.cc
@@ -5,6 +5,7 @@
#include "third_party/mojo/src/mojo/edk/system/channel.h"
#include <algorithm>
+#include <utility>
#include "base/bind.h"
#include "base/logging.h"
@@ -126,7 +127,7 @@ void Channel::WillShutdownSoon() {
void Channel::SetBootstrapEndpoint(scoped_refptr<ChannelEndpoint> endpoint) {
// Used for both local and remote IDs.
ChannelEndpointId bootstrap_id = ChannelEndpointId::GetBootstrap();
- SetBootstrapEndpointWithIds(endpoint.Pass(), bootstrap_id, bootstrap_id);
+ SetBootstrapEndpointWithIds(std::move(endpoint), bootstrap_id, bootstrap_id);
}
void Channel::SetBootstrapEndpointWithIds(

Powered by Google App Engine
This is Rietveld 408576698