| Index: content/common/child_process.cc
|
| diff --git a/content/common/child_process.cc b/content/common/child_process.cc
|
| index 5e5d5faf920655a47f6d5f1bbc1365eb434de6b9..c71ea53e08251ce94e16399fd024cf703c44417c 100644
|
| --- a/content/common/child_process.cc
|
| +++ b/content/common/child_process.cc
|
| @@ -58,6 +58,8 @@ void ChildProcess::set_main_thread(ChildThread* thread) {
|
| void ChildProcess::AddRefProcess() {
|
| DCHECK(!main_thread_.get() || // null in unittests.
|
| MessageLoop::current() == main_thread_->message_loop());
|
| + if (!ref_count_ && main_thread_.get())
|
| + main_thread_->AbortProcessShutdown();
|
| ref_count_++;
|
| }
|
|
|
|
|