Index: content/common/sandbox_mac_diraccess_unittest.mm |
diff --git a/content/common/sandbox_mac_diraccess_unittest.mm b/content/common/sandbox_mac_diraccess_unittest.mm |
index 7a3fed8dfbc73c63d3e0d0e73724ac19c2e21e90..a403ecd25634fa6847423c04df67b1c5ce830335 100644 |
--- a/content/common/sandbox_mac_diraccess_unittest.mm |
+++ b/content/common/sandbox_mac_diraccess_unittest.mm |
@@ -34,14 +34,14 @@ class MacDirAccessSandboxTest : public base::MultiProcessTest { |
public: |
bool CheckSandbox(const std::string& directory_to_try) { |
setenv(kSandboxAccessPathKey, directory_to_try.c_str(), 1); |
- base::ProcessHandle child_process = SpawnChild("mac_sandbox_path_access"); |
- if (child_process == base::kNullProcessHandle) { |
+ base::Process child_process = SpawnChild("mac_sandbox_path_access"); |
+ if (!child_process.IsValid()) { |
LOG(WARNING) << "SpawnChild failed"; |
return false; |
} |
int code = -1; |
- if (!base::WaitForExitCode(child_process, &code)) { |
- LOG(WARNING) << "base::WaitForExitCode failed"; |
+ if (!child_process.WaitForExit(&code)) { |
+ LOG(WARNING) << "Process::WaitForExit failed"; |
return false; |
} |
return code == 0; |