| Index: services/ui/public/cpp/gpu/gpu_service.cc
|
| diff --git a/services/ui/public/cpp/gpu/gpu_service.cc b/services/ui/public/cpp/gpu/gpu_service.cc
|
| index 45ce4ca04957530b31ceff9c1c62772bc6af2237..1db6009badaf2afc8f0fe5ba2962d492f1227470 100644
|
| --- a/services/ui/public/cpp/gpu/gpu_service.cc
|
| +++ b/services/ui/public/cpp/gpu/gpu_service.cc
|
| @@ -113,7 +113,7 @@ void GpuService::OnEstablishedGpuChannel(
|
| DCHECK(gpu_service_.get());
|
| DCHECK(!gpu_channel_);
|
|
|
| - if (client_id) {
|
| + if (client_id && channel_handle.is_valid()) {
|
| gpu_channel_ = gpu::GpuChannelHost::Create(
|
| this, client_id, gpu_info, IPC::ChannelHandle(channel_handle.release()),
|
| &shutdown_event_, gpu_memory_buffer_manager_.get());
|
|
|