xref: /mports/www/chromium/files/patch-chrome_browser_themes_theme__service.cc
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 --- chrome/browser/themes/theme_service.cc.orig	2022-08-31 12:19:35 UTC
2 +++ chrome/browser/themes/theme_service.cc
3 @@ -72,7 +72,7 @@
4  #include "extensions/browser/extension_registry_observer.h"
5  #endif
6 
7 -#if BUILDFLAG(IS_LINUX)
8 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
9  #include "ui/linux/linux_ui.h"
10  #include "ui/ozone/public/ozone_platform.h"
11  #endif
12 @@ -314,7 +314,7 @@ CustomThemeSupplier* ThemeService::GetThemeSupplier()
13  }
14 
15  bool ThemeService::ShouldUseSystemTheme() const {
16 -#if BUILDFLAG(IS_LINUX)
17 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
18    return profile_->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme);
19  #else
20    return false;
21 @@ -322,7 +322,7 @@ bool ThemeService::ShouldUseSystemTheme() const {
22  }
23 
24  bool ThemeService::ShouldUseCustomFrame() const {
25 -#if BUILDFLAG(IS_LINUX)
26 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
27    if (!ui::OzonePlatform::GetInstance()
28             ->GetPlatformRuntimeProperties()
29             .supports_server_side_window_decorations) {
30 

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026