diff options
Diffstat (limited to 'chromium/base/process/kill_mac.cc')
-rw-r--r-- | chromium/base/process/kill_mac.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/base/process/kill_mac.cc b/chromium/base/process/kill_mac.cc index 9257ee6929a..a4e0a14cf8f 100644 --- a/chromium/base/process/kill_mac.cc +++ b/chromium/base/process/kill_mac.cc @@ -66,8 +66,8 @@ void BlockingReap(pid_t child) { // work in that case, but waitpid won't, and killing a non-child might not be // the best approach. void WaitForChildToDie(pid_t child, int timeout) { - DCHECK(child > 0); - DCHECK(timeout > 0); + DCHECK_GT(child, 0); + DCHECK_GT(timeout, 0); // DON'T ADD ANY EARLY RETURNS TO THIS FUNCTION without ensuring that // |child| has been reaped. Specifically, even if a kqueue, kevent, or other @@ -165,8 +165,8 @@ void WaitForChildToDie(pid_t child, int timeout) { } // namespace -void EnsureProcessTerminated(ProcessHandle process) { - WaitForChildToDie(process, kWaitBeforeKillSeconds); +void EnsureProcessTerminated(Process process) { + WaitForChildToDie(process.Pid(), kWaitBeforeKillSeconds); } } // namespace base |