ports/www/chromium/files/patch-chrome_browser_themes_theme__service.cc

20 lines
704 B
C++

--- chrome/browser/themes/theme_service.cc.orig 2023-09-13 12:11:42 UTC
+++ chrome/browser/themes/theme_service.cc
@@ -75,7 +75,7 @@
#include "extensions/browser/extension_registry_observer.h"
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "ui/linux/linux_ui.h"
#include "ui/ozone/public/ozone_platform.h"
#endif
@@ -333,7 +333,7 @@ CustomThemeSupplier* ThemeService::GetThemeSupplier()
}
bool ThemeService::ShouldUseCustomFrame() const {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (!ui::OzonePlatform::GetInstance()
->GetPlatformRuntimeProperties()
.supports_server_side_window_decorations) {