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..b105adef09f19e4166754ce33abcaf5c9dff91fb 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) { |
jar (doing other things)
2013/11/06 19:27:26
nit: 4 character indent from previous line's "v" i
ppi
2013/11/06 20:14:06
Done.
|
+ 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(); |