1 --- chrome/browser/themes/theme_service_factory.cc.orig 2022-08-31 12:19:35 UTC 2 +++ chrome/browser/themes/theme_service_factory.cc 3 @@ -25,11 +25,11 @@ 4 5 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch 6 // of lacros-chrome is complete. 7 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) 8 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) 9 #include "chrome/browser/themes/theme_service_aura_linux.h" 10 #endif 11 12 -#if BUILDFLAG(IS_LINUX) 13 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) 14 #include "ui/linux/linux_ui.h" 15 #endif 16 17 @@ -85,7 +85,7 @@ KeyedService* ThemeServiceFactory::BuildServiceInstanc 18 content::BrowserContext* profile) const { 19 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch 20 // of lacros-chrome is complete. 21 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) 22 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) 23 using ThemeService = ThemeServiceAuraLinux; 24 #endif 25 26 @@ -99,9 +99,9 @@ void ThemeServiceFactory::RegisterProfilePrefs( 27 user_prefs::PrefRegistrySyncable* registry) { 28 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch 29 // of lacros-chrome is complete. 30 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) 31 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) 32 bool default_uses_system_theme = false; 33 -#if BUILDFLAG(IS_LINUX) 34 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) 35 const ui::LinuxUi* linux_ui = ui::LinuxUi::instance(); 36 if (linux_ui) 37 default_uses_system_theme = linux_ui->GetDefaultUsesSystemTheme(); 38