Index: content/browser/gpu/browser_gpu_channel_host_factory.cc |
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc |
index aff2083e6deff4b7e3fe02f0b11d17a907cee9c5..08ef5e0e8b68428140ee9b18b77224da2d599612 100644 |
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc |
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc |
@@ -149,7 +149,7 @@ void BrowserGpuChannelHostFactory::EstablishRequest::EstablishOnIO() { |
void BrowserGpuChannelHostFactory::EstablishRequest::OnEstablishedOnIO( |
const IPC::ChannelHandle& channel_handle, |
const gpu::GPUInfo& gpu_info) { |
- if (channel_handle.name.empty() && reused_gpu_process_) { |
+ if (!channel_handle.mojo_handle.is_valid() && reused_gpu_process_) { |
// We failed after re-using the GPU process, but it may have died in the |
// mean time. Retry to have a chance to create a fresh GPU process. |
DVLOG(1) << "Failed to create channel on existing GPU process. Trying to " |
@@ -330,7 +330,7 @@ gpu::GpuChannelHost* BrowserGpuChannelHostFactory::GetGpuChannel() { |
void BrowserGpuChannelHostFactory::GpuChannelEstablished() { |
DCHECK(IsMainThread()); |
DCHECK(pending_request_.get()); |
- if (pending_request_->channel_handle().name.empty()) { |
+ if (!pending_request_->channel_handle().mojo_handle.is_valid()) { |
DCHECK(!gpu_channel_.get()); |
} else { |
// TODO(robliao): Remove ScopedTracker below once https://crbug.com/466866 |