Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: content/common/child_process_host_impl.cc

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually works now. Removes unnecessary logging. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698