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

Unified Diff: services/ui/public/cpp/gpu/gpu_service.cc

Issue 2516883003: mus-gpu: Allow connection request to gpu to fail. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | services/ui/public/interfaces/gpu_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | services/ui/public/interfaces/gpu_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698