diff options
Diffstat (limited to 'chrome/common/child_process_host.cc')
-rw-r--r-- | chrome/common/child_process_host.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/child_process_host.cc b/chrome/common/child_process_host.cc index 9fb6b52..51c6de4 100644 --- a/chrome/common/child_process_host.cc +++ b/chrome/common/child_process_host.cc @@ -177,9 +177,13 @@ void ChildProcessHost::Notify(NotificationType type) { ChromeThread::UI, FROM_HERE, new ChildNotificationTask(type, this)); } +bool ChildProcessHost::DidChildCrash() { + return child_process_->DidProcessCrash(); +} + void ChildProcessHost::OnChildDied() { - if (child_process_->GetHandle()) { - bool did_crash = child_process_->DidProcessCrash(); + if (handle() != base::kNullProcessHandle) { + bool did_crash = DidChildCrash(); if (did_crash) { OnProcessCrashed(); // Report that this child process crashed. |