Index: chrome/browser/policy/policy_browsertest.cc |
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc |
index 3646936b3fddeb93d5bf8b4b5339e151f48b4293..b97479899cddb4ca559ed29b8f77fb765082518a 100644 |
--- a/chrome/browser/policy/policy_browsertest.cc |
+++ b/chrome/browser/policy/policy_browsertest.cc |
@@ -1828,8 +1828,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, ExtensionInstallForcelist) { |
extensions::ExtensionHost* extension_host = |
extensions::ProcessManager::Get(browser()->profile()) |
->GetBackgroundHostForExtension(kGoodCrxId); |
- base::KillProcess(extension_host->render_process_host()->GetHandle(), |
- content::RESULT_CODE_KILLED, false); |
+ extension_host->render_process_host()->Shutdown(content::RESULT_CODE_KILLED, |
+ false); |
extension_crashed_observer.Wait(); |
extension_loaded_observer.Wait(); |
} |