fix: devtools crashing on Linux in detach mode (#48623)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot] 2025-10-21 19:31:15 +02:00 committed by GitHub
commit d22f7a15e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
#include "ui/views/widget/native_widget_aura.h"
#include "ui/views/window/default_frame_view.h"
#if BUILDFLAG(IS_LINUX)
#include "base/environment.h"
@ -62,7 +63,7 @@ gfx::ImageSkia* ViewsDelegate::GetDefaultWindowIcon() const {
std::unique_ptr<views::FrameView> ViewsDelegate::CreateDefaultFrameView(
views::Widget* widget) {
return nullptr;
return std::make_unique<views::DefaultFrameView>(widget);
}
void ViewsDelegate::OnBeforeWidgetInit(