Index: base/memory/shared_memory_unittest.cc |
diff --git a/base/memory/shared_memory_unittest.cc b/base/memory/shared_memory_unittest.cc |
index 19dedccb4768ad01040aa73a90d722e32fe18f8e..1ca2181c316a95b0189c5acef699726d9cff277e 100644 |
--- a/base/memory/shared_memory_unittest.cc |
+++ b/base/memory/shared_memory_unittest.cc |
@@ -684,7 +684,8 @@ TEST_F(SharedMemoryProcessTest, SharedMemoryAcrossProcesses) { |
// word by 1. |
Process processes[kNumTasks]; |
for (int index = 0; index < kNumTasks; ++index) { |
- processes[index] = SpawnChild("SharedMemoryTestMain"); |
+ SpawnChildResult spawn_result = SpawnChild("SharedMemoryTestMain"); |
+ processes[index] = std::move(spawn_result.process); |
ASSERT_TRUE(processes[index].IsValid()); |
} |