| Index: content/common/child_process_host_impl.cc
|
| diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
|
| index fb058d3ea987c73acc45b120de38a34ce9fafb9e..32e08049e93b1f46cd088b21c0adb071157a41f3 100644
|
| --- a/content/common/child_process_host_impl.cc
|
| +++ b/content/common/child_process_host_impl.cc
|
| @@ -262,7 +262,10 @@ bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
|
| }
|
|
|
| void ChildProcessHostImpl::OnChannelConnected(int32 peer_pid) {
|
| - if (!base::OpenPrivilegedProcessHandle(peer_pid, &peer_handle_)) {
|
| + if (!peer_handle_) {
|
| + peer_handle_ = delegate_->GetHandle();
|
| + }
|
| + if (!peer_handle_ && !base::OpenPrivilegedProcessHandle(peer_pid, &peer_handle_)) {
|
| NOTREACHED();
|
| }
|
| opening_channel_ = false;
|
|
|