Index: mojo/edk/embedder/embedder_unittest.cc |
diff --git a/mojo/edk/embedder/embedder_unittest.cc b/mojo/edk/embedder/embedder_unittest.cc |
index 2eb6bebb9deb53ca539dfb5c9dab69a6e5e5f9a8..4c085d929d3e1af7541874aad311371f21ae2ebd 100644 |
--- a/mojo/edk/embedder/embedder_unittest.cc |
+++ b/mojo/edk/embedder/embedder_unittest.cc |
@@ -206,11 +206,12 @@ TEST_F(EmbedderTest, PipeSetup) { |
TEST_F(EmbedderTest, PipeSetup_LaunchDeath) { |
PlatformChannelPair pair; |
+ ConnectionParam connection_param(pair.PassServerHandle()); |
PendingProcessConnection process; |
std::string pipe_token; |
ScopedMessagePipeHandle parent_mp = process.CreateMessagePipe(&pipe_token); |
- process.Connect(base::GetCurrentProcessHandle(), pair.PassServerHandle()); |
+ process.Connect(base::GetCurrentProcessHandle(), std::move(connection_param)); |
// Close the remote end, simulating child death before the child connects to |
// the reserved port. |