Index: components/browser_watcher/exit_code_watcher_win_unittest.cc |
diff --git a/components/browser_watcher/exit_code_watcher_win_unittest.cc b/components/browser_watcher/exit_code_watcher_win_unittest.cc |
index 9c1a0741b940f634832f71eca7c6a7595aafb36e..f3a3721a0620c199fbb22ba421978c835beed4a6 100644 |
--- a/components/browser_watcher/exit_code_watcher_win_unittest.cc |
+++ b/components/browser_watcher/exit_code_watcher_win_unittest.cc |
@@ -53,7 +53,9 @@ class ScopedSleeperProcess { |
base::CommandLine cmd_line(base::GetMultiProcessTestChildBaseCommandLine()); |
base::LaunchOptions options; |
options.start_hidden = true; |
- process_ = base::SpawnMultiProcessTestChild("Sleeper", cmd_line, options); |
+ base::SpawnChildResult spawn_result = |
+ base::SpawnMultiProcessTestChild("Sleeper", cmd_line, options); |
+ process_ = std::move(spawn_result.process); |
ASSERT_TRUE(process_.IsValid()); |
} |