diff options
Diffstat (limited to 'chrome/browser/extensions/api/processes/processes_api.cc')
-rw-r--r-- | chrome/browser/extensions/api/processes/processes_api.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/processes/processes_api.cc b/chrome/browser/extensions/api/processes/processes_api.cc index 56a7cb7..e2cc202 100644 --- a/chrome/browser/extensions/api/processes/processes_api.cc +++ b/chrome/browser/extensions/api/processes/processes_api.cc @@ -640,8 +640,9 @@ void TerminateFunction::TerminateProcess() { if (model->IsResourceFirstInGroup(i)) { if (process_id_ == model->GetUniqueChildProcessId(i)) { found = true; - killed = base::KillProcess(model->GetProcess(i), - content::RESULT_CODE_KILLED, true); + base::Process process = + base::Process::DeprecatedGetProcessFromHandle(model->GetProcess(i)); + killed = process.Terminate(content::RESULT_CODE_KILLED, true); UMA_HISTOGRAM_COUNTS("ChildProcess.KilledByExtensionAPI", 1); break; } |