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

Unified Diff: third_party/mojo/src/mojo/edk/system/proxy_message_pipe_endpoint.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/system/proxy_message_pipe_endpoint.cc
diff --git a/third_party/mojo/src/mojo/edk/system/proxy_message_pipe_endpoint.cc b/third_party/mojo/src/mojo/edk/system/proxy_message_pipe_endpoint.cc
index 33161ac531cb381ee7cbdee7c4b47baed0fc16d0..a648bfddbb222a00eec2567865bd736c7edafe06 100644
--- a/third_party/mojo/src/mojo/edk/system/proxy_message_pipe_endpoint.cc
+++ b/third_party/mojo/src/mojo/edk/system/proxy_message_pipe_endpoint.cc
@@ -5,6 +5,7 @@
#include "third_party/mojo/src/mojo/edk/system/proxy_message_pipe_endpoint.h"
#include <string.h>
+#include <utility>
#include "base/logging.h"
#include "third_party/mojo/src/mojo/edk/system/channel_endpoint.h"
@@ -46,7 +47,7 @@ bool ProxyMessagePipeEndpoint::OnPeerClose() {
void ProxyMessagePipeEndpoint::EnqueueMessage(
scoped_ptr<MessageInTransit> message) {
DCHECK(channel_endpoint_);
- bool ok = channel_endpoint_->EnqueueMessage(message.Pass());
+ bool ok = channel_endpoint_->EnqueueMessage(std::move(message));
LOG_IF(WARNING, !ok) << "Failed to write enqueue message to channel";
}

Powered by Google App Engine
This is Rietveld 408576698