| Index: net/tools/crash_cache/crash_cache.cc
|
| diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc
|
| index d548c79778a4ea43657dd5e0f6fe33a0c68b2df7..9ec15bb56e19191516e50827b6c45d4eac8f01ce 100644
|
| --- a/net/tools/crash_cache/crash_cache.cc
|
| +++ b/net/tools/crash_cache/crash_cache.cc
|
| @@ -17,7 +17,6 @@
|
| #include "base/path_service.h"
|
| #include "base/process/kill.h"
|
| #include "base/process/launch.h"
|
| -#include "base/process/process_handle.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -50,15 +49,15 @@ int RunSlave(RankCrashes action) {
|
| base::CommandLine cmdline(exe);
|
| cmdline.AppendArg(base::IntToString(action));
|
|
|
| - base::ProcessHandle handle;
|
| - if (!base::LaunchProcess(cmdline, base::LaunchOptions(), &handle)) {
|
| + base::Process process = base::LaunchProcess(cmdline, base::LaunchOptions());
|
| + if (!process.IsValid()) {
|
| printf("Unable to run test %d\n", action);
|
| return GENERIC;
|
| }
|
|
|
| int exit_code;
|
|
|
| - if (!base::WaitForExitCode(handle, &exit_code)) {
|
| + if (!process.WaitForExit(&exit_code)) {
|
| printf("Unable to get return code, test %d\n", action);
|
| return GENERIC;
|
| }
|
|
|