Commit 59a45647 authored by Erik Chen's avatar Erik Chen Committed by Chromium LUCI CQ

Wayland/ozone: Protocol errors should generate a crash report.

Previously, protocol errors would result in graceful termination of this
browser. This would visibly appear like a crash to users but no crash
report would be generated.

Bug: 1151480
Change-Id: I76209bd5b57471f6fc8e435027f1be286894c991
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586194
Commit-Queue: Erik Chen <erikchen@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836387}
parent 4a0a6a0e
...@@ -31,7 +31,10 @@ void ChromeBrowserMainExtraPartsOzone::PreEarlyInitialization() { ...@@ -31,7 +31,10 @@ void ChromeBrowserMainExtraPartsOzone::PreEarlyInitialization() {
} }
void ChromeBrowserMainExtraPartsOzone::PostMainMessageLoopStart() { void ChromeBrowserMainExtraPartsOzone::PostMainMessageLoopStart() {
auto shutdown_cb = base::BindOnce(&chrome::SessionEnding); auto shutdown_cb = base::BindOnce([](){
// Force a crash so that a crash report is generated.
LOG(FATAL) << "Wayland protocol error.";
});
#if defined(USE_OZONE) #if defined(USE_OZONE)
if (features::IsUsingOzonePlatform()) { if (features::IsUsingOzonePlatform()) {
ui::OzonePlatform::GetInstance()->PostMainMessageLoopStart( ui::OzonePlatform::GetInstance()->PostMainMessageLoopStart(
......
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