summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_plugin_browsertest.cc
diff options
context:
space:
mode:
authorrvargas <rvargas@chromium.org>2015-03-31 21:10:12 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-01 04:11:15 +0000
commitf8d789c4558c7575f4d388d44730d18fdf15772c (patch)
tree54807f725d613c10d0026a98cedb89189bef1a06 /chrome/browser/chrome_plugin_browsertest.cc
parentd65edb7b2d228497056e18100c882f7cf7d59c36 (diff)
downloadchromium_src-f8d789c4558c7575f4d388d44730d18fdf15772c.zip
chromium_src-f8d789c4558c7575f4d388d44730d18fdf15772c.tar.gz
chromium_src-f8d789c4558c7575f4d388d44730d18fdf15772c.tar.bz2
Remove uses of KillProcess.
BUG=417532 Review URL: https://codereview.chromium.org/1035323002 Cr-Commit-Position: refs/heads/master@{#323179}
Diffstat (limited to 'chrome/browser/chrome_plugin_browsertest.cc')
-rw-r--r--chrome/browser/chrome_plugin_browsertest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/chrome_plugin_browsertest.cc b/chrome/browser/chrome_plugin_browsertest.cc
index 795cfda..7504520 100644
--- a/chrome/browser/chrome_plugin_browsertest.cc
+++ b/chrome/browser/chrome_plugin_browsertest.cc
@@ -11,7 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/path_service.h"
#include "base/prefs/pref_service.h"
-#include "base/process/kill.h"
+#include "base/process/process.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/plugins/plugin_prefs.h"
#include "chrome/browser/profiles/profile.h"
@@ -171,7 +171,9 @@ class ChromePluginTest : public InProcessBrowserTest {
iter.GetData().process_type != content::PROCESS_TYPE_PPAPI_PLUGIN) {
continue;
}
- base::KillProcess(iter.GetData().handle, 0, true);
+ base::Process process = base::Process::DeprecatedGetProcessFromHandle(
+ iter.GetData().handle);
+ process.Terminate(0, true);
found = true;
}
ASSERT_TRUE(found) << "Didn't find Flash process!";