Index: content/browser/browser_child_process_host.cc |
=================================================================== |
--- content/browser/browser_child_process_host.cc (revision 112769) |
+++ content/browser/browser_child_process_host.cc (working copy) |
@@ -131,6 +131,8 @@ |
base::TerminationStatus BrowserChildProcessHost::GetChildTerminationStatus( |
int* exit_code) { |
+ if (!child_process_.get()) // If the delegate doesn't use Launch() helper. |
+ return base::GetTerminationStatus(handle(), exit_code); |
return child_process_->GetChildTerminationStatus(exit_code); |
} |
@@ -174,9 +176,7 @@ |
break; |
} |
case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: { |
- OnProcessWasKilled(exit_code); |
// Report that this child process was killed. |
- Notify(content::NOTIFICATION_CHILD_PROCESS_WAS_KILLED); |
UMA_HISTOGRAM_ENUMERATION("ChildProcess.Killed", |
this->type(), |
content::PROCESS_TYPE_MAX); |