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

Unified Diff: content/browser/mach_broker_mac_unittest.cc

Issue 2733323002: Changing multiprocess test SpawnChild to return a struct. (Closed)
Patch Set: Fixed bots. Created 3 years, 9 months 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: content/browser/mach_broker_mac_unittest.cc
diff --git a/content/browser/mach_broker_mac_unittest.cc b/content/browser/mach_broker_mac_unittest.cc
index 261f500a5635d4474e182b679aa9dc858007ddd5..83575d1e8fa8b46af62ce6847ae738b4b0070c2e 100644
--- a/content/browser/mach_broker_mac_unittest.cc
+++ b/content/browser/mach_broker_mac_unittest.cc
@@ -45,9 +45,10 @@ class MachBrokerTest : public testing::Test,
base::Process LaunchTestChild(const std::string& function,
int child_process_id) {
base::AutoLock lock(broker_.GetLock());
- base::Process test_child_process = base::SpawnMultiProcessTestChild(
+ base::SpawnChildResult spaw_result = base::SpawnMultiProcessTestChild(
function, base::GetMultiProcessTestChildBaseCommandLine(),
base::LaunchOptions());
+ base::Process test_child_process = std::move(spaw_result.process);
broker_.AddPlaceholderForPid(test_child_process.Handle(), child_process_id);
return test_child_process;
}

Powered by Google App Engine
This is Rietveld 408576698