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 |