Index: content/common/gpu/gpu_channel.cc |
=================================================================== |
--- content/common/gpu/gpu_channel.cc (revision 128568) |
+++ content/common/gpu/gpu_channel.cc (working copy) |
@@ -315,7 +315,10 @@ |
void GpuChannel::OnInitialize(base::ProcessHandle renderer_process) { |
// Initialize should only happen once. |
DCHECK(!renderer_process_); |
- renderer_process_ = renderer_process; |
+ |
+ // Verify that the renderer has passed its own process handle. |
+ if (base::GetProcId(renderer_process) == renderer_pid_) |
+ renderer_process_ = renderer_process; |
} |
void GpuChannel::OnCreateOffscreenCommandBuffer( |