Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5358)

Unified Diff: chrome/test/base/chrome_process_util.cc

Issue 999033003: Remove uses of KillProcess() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/chrome_process_util.cc
diff --git a/chrome/test/base/chrome_process_util.cc b/chrome/test/base/chrome_process_util.cc
index 282cab0edcce6c8426a34ed9669647bce7722bd6..5b9325bec3d753fca11e1f9153d002d923667c23 100644
--- a/chrome/test/base/chrome_process_util.cc
+++ b/chrome/test/base/chrome_process_util.cc
@@ -9,7 +9,6 @@
#include <vector>
#include "base/command_line.h"
-#include "base/process/kill.h"
#include "base/process/process.h"
#include "base/process/process_iterator.h"
#include "base/time/time.h"
@@ -54,7 +53,7 @@ void TerminateAllChromeProcesses(const ChromeProcessList& process_pids) {
if (process.IsValid()) {
// Ignore processes for which we can't open the handle. We don't
// guarantee that all processes will terminate, only try to do so.
- base::KillProcess(process.Handle(), content::RESULT_CODE_KILLED, true);
+ process.Terminate(content::RESULT_CODE_KILLED, true);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698