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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolves review feedback. 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/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 8b3cd3a7c6a5aee76b2e238b2700a29ec8949cb4..0dac696a074c28968ae7a876f9723fed56056175 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -30,6 +30,7 @@
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host_view.h"
+#include "content/public/common/child_process_host_delegate.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/result_codes.h"
@@ -358,7 +359,9 @@ void GpuProcessHost::GetProcessHandles(
for (size_t i = 0; i < arraysize(g_gpu_process_hosts); ++i) {
GpuProcessHost* host = g_gpu_process_hosts[i];
if (host && ValidateHost(host))
- handles.push_back(host->process_->GetHandle());
+ handles.push_back(
+ static_cast<ChildProcessHostDelegate*>(host->process_.get())->
+ GetHandle());
}
BrowserThread::PostTask(
BrowserThread::UI,
@@ -1173,6 +1176,7 @@ bool GpuProcessHost::LaunchGpuProcess(const std::string& channel_id) {
process_->Launch(
#if defined(OS_WIN)
new GpuSandboxedProcessLauncherDelegate(cmd_line),
+ false,
#elif defined(OS_POSIX)
false,
base::EnvironmentMap(),

Powered by Google App Engine
This is Rietveld 408576698