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

Unified Diff: content/browser/child_process_launcher.cc

Issue 58203002: Android: remove ContentViewCore from the renderer crash codepath. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 3b95c14dc65d2f9aa0d52a074ff2d079e3946664..67d7bc2f785cfa305c1ffbbccdcfe7198491caac 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -469,14 +469,19 @@ base::TerminationStatus ChildProcessLauncher::GetChildTerminationStatus(
if (context_->zygote_) {
context_->termination_status_ = ZygoteHostImpl::GetInstance()->
GetTerminationStatus(handle, known_dead, &context_->exit_code_);
- } else
+ } else {
#elif defined(OS_MACOSX)
if (known_dead) {
context_->termination_status_ =
base::GetKnownDeadTerminationStatus(handle, &context_->exit_code_);
- } else
-#endif
+ } else {
+#elif defined(OS_ANDROID)
+ if (IsChildProcessOomProtected(handle)) {
+ context_->termination_status_ = base::TERMINATION_STATUS_OOM_PROTECTED;
+ } else {
+#else
{
+#endif
context_->termination_status_ =
base::GetTerminationStatus(handle, &context_->exit_code_);
}

Powered by Google App Engine
This is Rietveld 408576698