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

Unified Diff: third_party/mojo/src/mojo/edk/system/message_pipe_perftest.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_perftest.cc
diff --git a/third_party/mojo/src/mojo/edk/system/message_pipe_perftest.cc b/third_party/mojo/src/mojo/edk/system/message_pipe_perftest.cc
index 3d2b90c1bcb9d954e53122b60feb19b49bfc1d4e..dd3b777cb5586429beb84ebe2832f0a67992400e 100644
--- a/third_party/mojo/src/mojo/edk/system/message_pipe_perftest.cc
+++ b/third_party/mojo/src/mojo/edk/system/message_pipe_perftest.cc
@@ -5,8 +5,8 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
-
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -95,11 +95,11 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(PingPongClient) {
embedder::SimplePlatformSupport platform_support;
test::ChannelThread channel_thread(&platform_support);
embedder::ScopedPlatformHandle client_platform_handle =
- mojo::test::MultiprocessTestHelper::client_platform_handle.Pass();
+ std::move(mojo::test::MultiprocessTestHelper::client_platform_handle);
CHECK(client_platform_handle.is_valid());
scoped_refptr<ChannelEndpoint> ep;
scoped_refptr<MessagePipe> mp(MessagePipe::CreateLocalProxy(&ep));
- channel_thread.Start(client_platform_handle.Pass(), ep);
+ channel_thread.Start(std::move(client_platform_handle), ep);
std::string buffer(1000000, '\0');
int rv = 0;
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/message_pipe.cc ('k') | third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698