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

Unified Diff: ipc/mojo/ipc_mojo_handle_attachment.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (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
« no previous file with comments | « ipc/mojo/ipc_mojo_bootstrap.cc ('k') | ipc/mojo/ipc_mojo_message_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_mojo_handle_attachment.cc
diff --git a/ipc/mojo/ipc_mojo_handle_attachment.cc b/ipc/mojo/ipc_mojo_handle_attachment.cc
index 4bbcf825075288e490ad2c9e6d72ff005f7e903d..70b80c57b13503abd70f9ffe011ec8daf4886000 100644
--- a/ipc/mojo/ipc_mojo_handle_attachment.cc
+++ b/ipc/mojo/ipc_mojo_handle_attachment.cc
@@ -4,6 +4,8 @@
#include "ipc/mojo/ipc_mojo_handle_attachment.h"
+#include <utility>
+
#include "build/build_config.h"
#include "ipc/ipc_message_attachment_set.h"
#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
@@ -12,8 +14,7 @@ namespace IPC {
namespace internal {
MojoHandleAttachment::MojoHandleAttachment(mojo::ScopedHandle handle)
- : handle_(handle.Pass()) {
-}
+ : handle_(std::move(handle)) {}
MojoHandleAttachment::~MojoHandleAttachment() {
}
@@ -38,7 +39,7 @@ base::PlatformFile MojoHandleAttachment::TakePlatformFile() {
#endif // OS_POSIX
mojo::ScopedHandle MojoHandleAttachment::TakeHandle() {
- return handle_.Pass();
+ return std::move(handle_);
}
} // namespace internal
« no previous file with comments | « ipc/mojo/ipc_mojo_bootstrap.cc ('k') | ipc/mojo/ipc_mojo_message_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698