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

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: Mostly test cleanup. Created 6 years, 11 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 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;

Powered by Google App Engine
This is Rietveld 408576698