Index: content/browser/browser_child_process_host_impl.cc |
diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc |
index 08486fc7fa4c51c6284a25a35ae38b7d80f654c8..df7816e391ebd6c79ac53f9f7d5e527adb8211cc 100644 |
--- a/content/browser/browser_child_process_host_impl.cc |
+++ b/content/browser/browser_child_process_host_impl.cc |
@@ -261,6 +261,10 @@ bool BrowserChildProcessHostImpl::CanShutdown() { |
return delegate_->CanShutdown(); |
} |
+bool BrowserChildProcessHostImpl::ShouldUseMojoChannel() { |
+ return delegate_->ShouldUseMojoChannel(); |
+} |
+ |
void BrowserChildProcessHostImpl::OnChildDisconnected() { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
#if defined(OS_WIN) |
@@ -337,7 +341,16 @@ void BrowserChildProcessHostImpl::OnProcessLaunched() { |
// TODO(rvargas) crbug.com/417532: Don't store a handle. |
data_.handle = process.Handle(); |
+ |
+ NotifyProcessLaunched(); |
+} |
+ |
+void BrowserChildProcessHostImpl::NotifyProcessLaunched() { |
delegate_->OnProcessLaunched(); |
+ if (child_process_) |
+ GetHost()->OnProcessLaunched(child_process_->GetProcess().Handle()); |
+ else |
+ GetHost()->OnProcessLaunched(base::GetCurrentProcessHandle()); |
} |
#if defined(OS_WIN) |