[XProto] Crash early in OzonePlatformX11 if X connection is down
This is a speculative fix for bug 1137614 possibly introduced by e552c103. The issue is the change from CHECK(gfx::GetXDisplay()) to CHECK(x11::Connection::Get()) The second call will always succeed since x11::Connection::Get() always returns something even if the underlying connection is down. But the intention was to hit the CHECK() in this case, as that's what the behavior was before (gfx::GetXDisplay() returns nullptr when the connection failed). This CL restores the old behvaior by explicitly checking the connection state. R=msisov Bug: 1137614 Change-Id: If2b2049e39b4d892e60fd29813c915459787d8d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2558716 Auto-Submit: Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Maksim Sisov (GMT+2) <msisov@igalia.com> Reviewed-by:Maksim Sisov (GMT+2) <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#830895}
Showing
Please register or sign in to comment