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

Unified Diff: third_party/mojo/src/mojo/edk/system/message_pipe.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/message_pipe.cc
diff --git a/third_party/mojo/src/mojo/edk/system/message_pipe.cc b/third_party/mojo/src/mojo/edk/system/message_pipe.cc
index 21b1040ce40fefe47bee9d3549b98314ff903b13..19c13173a0495e2bc8361eb5ed010704782b8cc9 100644
--- a/third_party/mojo/src/mojo/edk/system/message_pipe.cc
+++ b/third_party/mojo/src/mojo/edk/system/message_pipe.cc
@@ -4,6 +4,8 @@
#include "third_party/mojo/src/mojo/edk/system/message_pipe.h"
+#include <utility>
+
#include "base/logging.h"
#include "third_party/mojo/src/mojo/edk/system/channel.h"
#include "third_party/mojo/src/mojo/edk/system/channel_endpoint.h"
@@ -332,7 +334,7 @@ MojoResult MessagePipe::EnqueueMessageNoLock(
}
// The endpoint's |EnqueueMessage()| may not report failure.
- endpoints_[port]->EnqueueMessage(message.Pass());
+ endpoints_[port]->EnqueueMessage(std::move(message));
return MOJO_RESULT_OK;
}
@@ -376,7 +378,7 @@ MojoResult MessagePipe::AttachTransportsNoLock(
dispatchers->push_back(nullptr);
}
}
- message->SetDispatchers(dispatchers.Pass());
+ message->SetDispatchers(std::move(dispatchers));
return MOJO_RESULT_OK;
}

Powered by Google App Engine
This is Rietveld 408576698