diff options
author | rvargas <rvargas@chromium.org> | 2015-03-31 21:10:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-01 04:11:15 +0000 |
commit | f8d789c4558c7575f4d388d44730d18fdf15772c (patch) | |
tree | 54807f725d613c10d0026a98cedb89189bef1a06 /chrome/browser/chrome_plugin_browsertest.cc | |
parent | d65edb7b2d228497056e18100c882f7cf7d59c36 (diff) | |
download | chromium_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.cc | 6 |
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!"; |