Chromium Code Reviews| 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..df9dcfdfef6ffcd582e4196ff3de7a8996c00574 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 wasOomProtected = |
|
Yaron
2013/11/05 01:48:43
was_oom_protected
ppi
2013/11/05 13:58:18
Done.
|
| + termination_status == base::TERMINATION_STATUS_OOM_PROTECTED; |
| + Java_WebContentsObserverAndroid_renderProcessGone( |
| + env, obj.obj(), wasOomProtected); |
| +} |
| + |
| void WebContentsObserverAndroid::DidStartLoading( |
| RenderViewHost* render_view_host) { |
| JNIEnv* env = AttachCurrentThread(); |