Commit 408589a9 authored by rvargas's avatar rvargas Committed by Commit bot

Remove uses of WaitForExitCode

BUG=417532

Review URL: https://codereview.chromium.org/924803004

Cr-Commit-Position: refs/heads/master@{#316335}
parent aa885bd7
......@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/process/kill.h"
#include "base/process/launch.h"
#include "base/process/process.h"
#if defined(OS_WIN)
#include <windows.h>
......@@ -235,7 +236,8 @@ bool ExecProcess(const base::CommandLine& cmdline,
err_open = ReadFromPipe(err_read.get(), std_err);
}
return base::WaitForExitCode(pid, exit_code);
base::Process process(pid);
return process.WaitForExit(exit_code);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment