Index: content/browser/memory/memory_coordinator_impl_unittest.cc |
diff --git a/content/browser/memory/memory_coordinator_impl_unittest.cc b/content/browser/memory/memory_coordinator_impl_unittest.cc |
index 7104ef938c235f568ba886436bce832b6234d004..774b4fe9279d83631d8b251cf9dd99a10ae58e05 100644 |
--- a/content/browser/memory/memory_coordinator_impl_unittest.cc |
+++ b/content/browser/memory/memory_coordinator_impl_unittest.cc |
@@ -532,8 +532,12 @@ TEST_F(MemoryCoordinatorImplTest, MAYBE_GetStateForProcess) { |
coordinator_->CreateChildMemoryCoordinator(1); |
coordinator_->CreateChildMemoryCoordinator(2); |
- base::Process process1 = SpawnChild("process1"); |
- base::Process process2 = SpawnChild("process2"); |
+ |
+ base::SpawnChildResult spawn_result = SpawnChild("process1"); |
+ base::Process process1 = std::move(spawn_result.process); |
+ spawn_result = SpawnChild("process2"); |
+ base::Process process2 = std::move(spawn_result.process); |
+ |
coordinator_->GetMockRenderProcessHost(1)->SetProcessHandle( |
base::MakeUnique<base::ProcessHandle>(process1.Handle())); |
coordinator_->GetMockRenderProcessHost(2)->SetProcessHandle( |