Index: extensions/browser/guest_view/web_view/web_view_guest.cc |
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc |
index 1296760543d9c3958ac32ac8a6ba735da6e69c78..453a7fd74a2902633e3727b22108ff2d3fd7ce5f 100644 |
--- a/extensions/browser/guest_view/web_view/web_view_guest.cc |
+++ b/extensions/browser/guest_view/web_view/web_view_guest.cc |
@@ -242,9 +242,8 @@ void WebViewGuest::CreateWebContents( |
if (!base::IsStringUTF8(storage_partition_id)) { |
content::RecordAction( |
base::UserMetricsAction("BadMessageTerminate_BPGM")); |
- base::KillProcess( |
- owner_render_process_host->GetHandle(), |
- content::RESULT_CODE_KILLED_BAD_MESSAGE, false); |
+ owner_render_process_host->Shutdown(content::RESULT_CODE_KILLED_BAD_MESSAGE, |
+ false); |
callback.Run(NULL); |
return; |
} |
@@ -672,7 +671,8 @@ void WebViewGuest::Terminate() { |
base::ProcessHandle process_handle = |
web_contents()->GetRenderProcessHost()->GetHandle(); |
if (process_handle) |
- base::KillProcess(process_handle, content::RESULT_CODE_KILLED, false); |
+ web_contents()->GetRenderProcessHost()->Shutdown( |
+ content::RESULT_CODE_KILLED, false); |
} |
bool WebViewGuest::ClearData(const base::Time remove_since, |