blob: b9aee8b68558d087f7aa88492415221f28aaa689 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- chrome/browser/themes/theme_service_factory.cc.orig 2025-04-22 20:15:27 UTC
+++ chrome/browser/themes/theme_service_factory.cc
@@ -24,7 +24,7 @@
#include "chrome/browser/themes/theme_helper_win.h"
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "chrome/browser/themes/theme_service_aura_linux.h"
#include "ui/linux/linux_ui_factory.h"
#endif
@@ -103,7 +103,7 @@ ThemeServiceFactory::BuildServiceInstanceForBrowserCon
std::unique_ptr<KeyedService>
ThemeServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* profile) const {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
using ThemeService = ThemeServiceAuraLinux;
#endif
@@ -115,7 +115,7 @@ void ThemeServiceFactory::RegisterProfilePrefs(
void ThemeServiceFactory::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
registry->RegisterIntegerPref(prefs::kSystemTheme,
static_cast<int>(ui::GetDefaultSystemTheme()));
#endif
|