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

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

Issue 725353003: Don't pass ProcessHandle through ChildProcessHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 be7db476b0bd1524ac6e51a8884a709403fbd2e3..d8e244dcac12693e946e31c923eaa9f0d956b2e3 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -326,9 +326,10 @@ void GpuProcessHost::GetProcessHandles(
}
std::list<base::ProcessHandle> handles;
for (size_t i = 0; i < arraysize(g_gpu_process_hosts); ++i) {
+ // TODO(rvargas) crbug/417532: don't store ProcessHandles!.
GpuProcessHost* host = g_gpu_process_hosts[i];
if (host && ValidateHost(host))
- handles.push_back(host->process_->GetHandle());
+ handles.push_back(host->process_->GetProcess().Handle());
}
BrowserThread::PostTask(
BrowserThread::UI,

Powered by Google App Engine
This is Rietveld 408576698