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

Unified Diff: content/common/sandbox_mac_unittest_helper.mm

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/common/sandbox_mac_unittest_helper.mm
diff --git a/content/common/sandbox_mac_unittest_helper.mm b/content/common/sandbox_mac_unittest_helper.mm
index 5988ffe6cfa0d77ebb63e95bb6fd52d0369b981d..b4b4a0abb89f19285cb453cc01ac78f123dbc52e 100644
--- a/content/common/sandbox_mac_unittest_helper.mm
+++ b/content/common/sandbox_mac_unittest_helper.mm
@@ -77,7 +77,8 @@ bool MacSandboxTest::RunTestInSandbox(SandboxType sandbox_type,
if (test_data)
setenv(kTestDataKey, test_data, 1);
- base::Process child_process = SpawnChild("mac_sandbox_test_runner");
+ base::SpawnChildResult spawn_result = SpawnChild("mac_sandbox_test_runner");
+ base::Process child_process = std::move(spawn_result.process);
if (!child_process.IsValid()) {
LOG(WARNING) << "SpawnChild failed";
return false;

Powered by Google App Engine
This is Rietveld 408576698