| Index: net/tools/stress_cache/stress_cache.cc
|
| diff --git a/net/tools/stress_cache/stress_cache.cc b/net/tools/stress_cache/stress_cache.cc
|
| index d43cb74b3cc844a44b0d531b4dc1207a1d8577d3..b63ce2111867038cabe7076c037e45be2cfaa79c 100644
|
| --- a/net/tools/stress_cache/stress_cache.cc
|
| +++ b/net/tools/stress_cache/stress_cache.cc
|
| @@ -25,8 +25,8 @@
|
| #include "base/logging.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/path_service.h"
|
| -#include "base/process/kill.h"
|
| #include "base/process/launch.h"
|
| +#include "base/process/process.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -203,8 +203,8 @@ void CrashCallback() {
|
| if (rand() % 100 > 30) {
|
| printf("sweet death...\n");
|
| #if defined(OS_WIN)
|
| - // Windows does more work on _exit() that we would like, so we use Kill.
|
| - base::KillProcessById(base::GetCurrentProcId(), kExpectedCrash, false);
|
| + // Windows does more work on _exit() than we would like.
|
| + base::Process::Current().Terminate(kExpectedCrash);
|
| #elif defined(OS_POSIX)
|
| // On POSIX, _exit() will terminate the process with minimal cleanup,
|
| // and it is cleaner than killing.
|
|
|