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

Unified Diff: ipc/mojo/ipc_mojo_message_helper.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_handle_attachment.cc ('k') | jingle/glue/chrome_async_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_mojo_message_helper.cc
diff --git a/ipc/mojo/ipc_mojo_message_helper.cc b/ipc/mojo/ipc_mojo_message_helper.cc
index 6f33f80f11b4e70834b913ccf9ae676a261f93fe..8b8344ec766c514d2a4a1c8bce92f5ca05739c66 100644
--- a/ipc/mojo/ipc_mojo_message_helper.cc
+++ b/ipc/mojo/ipc_mojo_message_helper.cc
@@ -4,6 +4,8 @@
#include "ipc/mojo/ipc_mojo_message_helper.h"
+#include <utility>
+
#include "ipc/mojo/ipc_mojo_handle_attachment.h"
namespace IPC {
@@ -13,7 +15,7 @@ bool MojoMessageHelper::WriteMessagePipeTo(
Message* message,
mojo::ScopedMessagePipeHandle handle) {
message->WriteAttachment(new internal::MojoHandleAttachment(
- mojo::ScopedHandle::From(handle.Pass())));
+ mojo::ScopedHandle::From(std::move(handle))));
return true;
}
« no previous file with comments | « ipc/mojo/ipc_mojo_handle_attachment.cc ('k') | jingle/glue/chrome_async_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698