Index: content/browser/browser_plugin/browser_plugin_guest.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc |
index 8337c0a1183384c012b1f5c1d51972ced302a20a..683e57c169ed617d201896f06adbebb59a131ef2 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -90,6 +90,13 @@ WebContents* BrowserPluginGuest::GetWebContents() { |
return web_contents(); |
} |
+void BrowserPluginGuest::Terminate() { |
+ RecordAction(UserMetricsAction("BrowserPlugin.Guest.Terminate")); |
+ base::ProcessHandle process_handle = |
+ web_contents()->GetRenderProcessHost()->GetHandle(); |
+ base::KillProcess(process_handle, RESULT_CODE_KILLED, false); |
+} |
+ |
void BrowserPluginGuest::SetDamageBuffer( |
TransportDIB* damage_buffer, |
#if defined(OS_WIN) |