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_); |
} |