Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Unified Diff: content/browser/android/web_contents_observer_android.cc

Issue 58203002: Android: remove ContentViewCore from the renderer crash codepath. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698