Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / common / child_process_host_impl.cc
index 4e7b862..efdd925 100644 (file)
@@ -270,7 +270,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())) {
     NOTREACHED();
   }
   opening_channel_ = false;