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

Unified Diff: third_party/mojo/src/mojo/edk/system/local_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/local_message_pipe_endpoint.cc
diff --git a/third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.cc b/third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.cc
index ea2a6cf609d2604bc59c567d39bb680cfbf03f99..c9614bcbb162a6b25746ef3d7f4c22336b6384a8 100644
--- a/third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.cc
+++ b/third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.cc
@@ -5,6 +5,7 @@
#include "third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.h"
#include <string.h>
+#include <utility>
#include "base/logging.h"
#include "third_party/mojo/src/mojo/edk/system/dispatcher.h"
@@ -49,7 +50,7 @@ void LocalMessagePipeEndpoint::EnqueueMessage(
DCHECK(is_peer_open_);
bool was_empty = message_queue_.IsEmpty();
- message_queue_.AddMessage(message.Pass());
+ message_queue_.AddMessage(std::move(message));
if (was_empty)
awakable_list_.AwakeForStateChange(GetHandleSignalsState());
}

Powered by Google App Engine
This is Rietveld 408576698