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

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: Adds the elevation flag to the utility process. Created 6 years, 10 months 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 4e7b8621a86680bb06e3d4bc4361228b29bb36ce..efdd925a62567da623952532d749a643eee0d50c 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -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;
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | content/public/browser/browser_child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698