Index: content/browser/android/web_contents_observer_android.cc |
diff --git a/content/browser/android/web_contents_observer_android.cc b/content/browser/android/web_contents_observer_android.cc |
index ca02612f29653bca40ca8c84d65651f6e0457b36..194cf47b7398440577e7f1013e3eb6a5c6a8c20e 100644 |
--- a/content/browser/android/web_contents_observer_android.cc |
+++ b/content/browser/android/web_contents_observer_android.cc |
@@ -60,6 +60,18 @@ void WebContentsObserverAndroid::WebContentsDestroyed( |
} |
} |
+void WebContentsObserverAndroid::RenderProcessGone( |
+ base::TerminationStatus termination_status) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jobject> obj(weak_java_observer_.get(env)); |
+ if (obj.is_null()) |
+ return; |
+ jboolean was_oom_protected = |
+ termination_status == base::TERMINATION_STATUS_OOM_PROTECTED; |
+ Java_WebContentsObserverAndroid_renderProcessGone( |
+ env, obj.obj(), was_oom_protected); |
+} |
+ |
void WebContentsObserverAndroid::DidStartLoading( |
RenderViewHost* render_view_host) { |
JNIEnv* env = AttachCurrentThread(); |