aboutsummaryrefslogblamecommitdiff
path: root/www/chromium/files/patch-chrome_browser_ui_web__applications_app__browser__controller.cc
blob: 06b162d7df1039e1503d19555efb563273362974 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                                                               
                                                                
                                                                          







                                                                               
                                                                          







                                                          
--- chrome/browser/ui/web_applications/app_browser_controller.cc.orig	2022-05-19 14:06:27 UTC
+++ chrome/browser/ui/web_applications/app_browser_controller.cc
@@ -385,7 +385,7 @@ CustomThemeSupplier* AppBrowserController::GetThemeSup
 }
 
 bool AppBrowserController::ShouldUseSystemTheme() const {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   return browser_->profile()->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme);
 #else
   return false;
@@ -393,7 +393,7 @@ bool AppBrowserController::ShouldUseSystemTheme() cons
 }
 
 bool AppBrowserController::ShouldUseCustomFrame() const {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   return browser_->profile()->GetPrefs()->GetBoolean(
       prefs::kUseCustomChromeFrame);
 #else