Commit 9c74d43d authored by j.isorce's avatar j.isorce Committed by Commit bot

Check for GpuChannelHost nullity in GetGpuDriverBugWorkarounds

BUG=627392

R=kbr@chromium.org

Review-Url: https://codereview.chromium.org/2143913002
Cr-Commit-Position: refs/heads/master@{#405282}
parent 89c7bc1f
......@@ -955,7 +955,8 @@ void GpuBenchmarking::GetGpuDriverBugWorkarounds(gin::Arguments* args) {
std::vector<std::string> gpu_driver_bug_workarounds;
gpu::GpuChannelHost* gpu_channel =
RenderThreadImpl::current()->GetGpuChannel();
if (!gpu_channel->Send(new GpuChannelMsg_GetDriverBugWorkArounds(
if (!gpu_channel ||
!gpu_channel->Send(new GpuChannelMsg_GetDriverBugWorkArounds(
&gpu_driver_bug_workarounds))) {
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment