Index: mojo/edk/system/proxy_message_pipe_endpoint.cc |
diff --git a/mojo/edk/system/proxy_message_pipe_endpoint.cc b/mojo/edk/system/proxy_message_pipe_endpoint.cc |
index ce96f248e4734b7e9da6f240af4c1596df00caa3..951fb29e085bad9cad0e9511a668d793fa022d28 100644 |
--- a/mojo/edk/system/proxy_message_pipe_endpoint.cc |
+++ b/mojo/edk/system/proxy_message_pipe_endpoint.cc |
@@ -6,6 +6,8 @@ |
#include <string.h> |
+#include <utility> |
+ |
#include "base/logging.h" |
#include "mojo/edk/system/channel_endpoint.h" |
#include "mojo/edk/system/local_message_pipe_endpoint.h" |
@@ -44,9 +46,9 @@ bool ProxyMessagePipeEndpoint::OnPeerClose() { |
// -- it may have been written to and closed immediately, before we were ready. |
// This case is handled in |Run()| (which will call us). |
void ProxyMessagePipeEndpoint::EnqueueMessage( |
- scoped_ptr<MessageInTransit> message) { |
+ std::unique_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"; |
} |