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

Unified Diff: third_party/mojo/src/mojo/edk/system/data_pipe_impl.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/data_pipe_impl.cc
diff --git a/third_party/mojo/src/mojo/edk/system/data_pipe_impl.cc b/third_party/mojo/src/mojo/edk/system/data_pipe_impl.cc
index 92b8fb3ffa3b69e9f9ee9dc7aeabfdc0c2eb8ad6..c7b534c49eb76e6f3664cd76d02357118be5b119 100644
--- a/third_party/mojo/src/mojo/edk/system/data_pipe_impl.cc
+++ b/third_party/mojo/src/mojo/edk/system/data_pipe_impl.cc
@@ -5,6 +5,7 @@
#include "third_party/mojo/src/mojo/edk/system/data_pipe_impl.h"
#include <algorithm>
+#include <utility>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -38,7 +39,7 @@ void DataPipeImpl::ConvertDataToMessages(const char* buffer,
MessageInTransit::Type::ENDPOINT_CLIENT,
MessageInTransit::Subtype::ENDPOINT_CLIENT_DATA,
static_cast<uint32_t>(message_num_bytes), buffer + *start_index));
- message_queue->AddMessage(message.Pass());
+ message_queue->AddMessage(std::move(message));
DCHECK_LE(message_num_bytes, *current_num_bytes);
*start_index += message_num_bytes;
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/data_pipe.cc ('k') | third_party/mojo/src/mojo/edk/system/endpoint_relayer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698