blob: 8aa7e5d70afe9c54fb4db4a2ce6cecd4fca38629 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- chrome/browser/themes/theme_helper.cc.orig 2022-06-17 14:20:10 UTC
+++ chrome/browser/themes/theme_helper.cc
@@ -24,7 +24,7 @@
#include "ui/native_theme/common_theme.h"
#include "ui/native_theme/native_theme.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "ui/views/linux_ui/linux_ui.h"
#endif
@@ -494,7 +494,7 @@ bool ThemeHelper::UseDarkModeColors(const CustomThemeS
ui::NativeTheme const* native_theme =
ui::NativeTheme::GetInstanceForNativeUi();
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (const auto* linux_ui = views::LinuxUI::instance()) {
// We rely on the fact that the system theme is in use iff `theme_supplier`
// is non-null, but this is cheating. In the future this might not hold
|