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..8b51d46a72f84b060e7d6d4f9e0ff9e962559d82 100644 |
--- a/content/common/child_process_host_impl.cc |
+++ b/content/common/child_process_host_impl.cc |
@@ -262,7 +262,9 @@ bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) { |
} |
void ChildProcessHostImpl::OnChannelConnected(int32 peer_pid) { |
- if (!base::OpenPrivilegedProcessHandle(peer_pid, &peer_handle_)) { |
+ if (!peer_handle_ && |
+ !base::OpenPrivilegedProcessHandle(peer_pid, &peer_handle_) && |
+ !(peer_handle_ = delegate_->GetHandle())) { |
mef
2014/01/10 18:22:55
What if user has cancelled the UAC, wouldn't deleg
Drew Haven
2014/01/16 02:52:05
If the user didn't accept the UAC prompt then the
|
NOTREACHED(); |
} |
opening_channel_ = false; |