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

Unified Diff: chrome/browser/process_info_snapshot_mac_unittest.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/browser/process_info_snapshot_mac_unittest.cc
diff --git a/chrome/browser/process_info_snapshot_mac_unittest.cc b/chrome/browser/process_info_snapshot_mac_unittest.cc
index 51d212d54a121c8865b3f55444daf858f078c042..e95cf0c91b28107f4f455861e59d33ef2cf44b79 100644
--- a/chrome/browser/process_info_snapshot_mac_unittest.cc
+++ b/chrome/browser/process_info_snapshot_mac_unittest.cc
@@ -14,9 +14,8 @@
#include "base/logging.h"
#include "base/mac/mac_util.h"
#include "base/posix/eintr_wrapper.h"
-#include "base/process/kill.h"
#include "base/process/launch.h"
-#include "base/process/process_handle.h"
+#include "base/process/process.h"
#include "base/process/process_metrics.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -143,6 +142,6 @@ TEST_F(ProcessInfoSnapshotMacTest, EffectiveVsRealUserIDTest) {
// Real user ID should match the calling process's user id.
EXPECT_EQ(proc_info.uid, geteuid());
- ASSERT_TRUE(base::KillProcess(process.Handle(), 0, true));
+ ASSERT_TRUE(process.Terminate(0, true));
PCHECK(IGNORE_EINTR(close(fds[0])) == 0);
}

Powered by Google App Engine
This is Rietveld 408576698