Index: chrome/browser/android/tab_android.cc |
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc |
index ab3a25c7059ce91a032b1e5667febeb75dcfae2f..83471cfd7a84d84764ffb6fc85ab3f731b8b25d8 100644 |
--- a/chrome/browser/android/tab_android.cc |
+++ b/chrome/browser/android/tab_android.cc |
@@ -68,6 +68,7 @@ |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/user_metrics.h" |
#include "content/public/browser/web_contents.h" |
+#include "content/public/common/result_codes.h" |
#include "content/public/common/top_controls_state.h" |
#include "jni/Tab_jni.h" |
#include "net/base/escape.h" |
@@ -794,6 +795,12 @@ bool TabAndroid::HasPrerenderedUrl(JNIEnv* env, jobject obj, jstring url) { |
return HasPrerenderedUrl(gurl); |
} |
+void TabAndroid::ShutdownHungRenderer(JNIEnv* env, jobject obj) { |
+ DCHECK(web_contents()); |
+ content::RenderProcessHost* process = web_contents()->GetRenderProcessHost(); |
+ process->Shutdown(content::RESULT_CODE_HUNG, false); |
+} |
+ |
namespace { |
class ChromeInterceptNavigationDelegate : public InterceptNavigationDelegate { |