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

Unified Diff: third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.cc

Issue 1545333002: Convert Pass()→std::move() in //third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.cc
diff --git a/third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.cc b/third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.cc
index b9cb592ce50ea7766ff48981421481002e06135c..5689daee5f8f6f3933b22ab9d6a68878e5939faf 100644
--- a/third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.cc
+++ b/third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.cc
@@ -4,6 +4,8 @@
#include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h"
+#include <utility>
+
#include "base/logging.h"
namespace mojo {
@@ -16,11 +18,11 @@ PlatformChannelPair::~PlatformChannelPair() {
}
ScopedPlatformHandle PlatformChannelPair::PassServerHandle() {
- return server_handle_.Pass();
+ return std::move(server_handle_);
}
ScopedPlatformHandle PlatformChannelPair::PassClientHandle() {
- return client_handle_.Pass();
+ return std::move(client_handle_);
}
void PlatformChannelPair::ChildProcessLaunched() {

Powered by Google App Engine
This is Rietveld 408576698