diff options
Diffstat (limited to 'devel/electron13/files/patch-chrome_browser_prefs_browser__prefs.cc')
-rw-r--r-- | devel/electron13/files/patch-chrome_browser_prefs_browser__prefs.cc | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-chrome_browser_prefs_browser__prefs.cc b/devel/electron13/files/patch-chrome_browser_prefs_browser__prefs.cc new file mode 100644 index 000000000000..d7782a1c887f --- /dev/null +++ b/devel/electron13/files/patch-chrome_browser_prefs_browser__prefs.cc @@ -0,0 +1,50 @@ +--- chrome/browser/prefs/browser_prefs.cc.orig 2021-07-15 19:13:33 UTC ++++ chrome/browser/prefs/browser_prefs.cc +@@ -386,14 +386,14 @@ + #endif + + #if defined(OS_WIN) || defined(OS_MAC) || \ +- (defined(OS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) ++ (defined(OS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) || defined(OS_BSD) + #include "chrome/browser/web_applications/components/url_handler_prefs.h" + #endif + + // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch + // of lacros-chrome is complete. + #if defined(OS_WIN) || defined(OS_MAC) || \ +- (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) ++ (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || defined(OS_BSD) + #include "chrome/browser/browser_switcher/browser_switcher_prefs.h" + #endif + +@@ -840,10 +840,10 @@ void RegisterLocalState(PrefRegistrySimple* registry) + + // TODO(crbug/1169547) Remove `BUILDFLAG(IS_CHROMEOS_LACROS)` once the + // migration is complete. +-#if defined(OS_LINUX) || defined(OS_MAC) || defined(OS_WIN) || \ ++#if defined(OS_LINUX) || defined(OS_MAC) || defined(OS_WIN) || defined(OS_BSD) || \ + BUILDFLAG(IS_CHROMEOS_LACROS) + enterprise_connectors::RegisterLocalPrefs(registry); +-#endif // defined(OS_LINUX) || defined(OS_MAC) || defined(OS_WIN) ++#endif // defined(OS_LINUX) || defined(OS_MAC) || defined(OS_WIN) || defined(OS_BSD) + + #if defined(OS_MAC) + confirm_quit::RegisterLocalState(registry); +@@ -871,7 +871,7 @@ void RegisterLocalState(PrefRegistrySimple* registry) + #endif // defined(OS_WIN) + + #if defined(OS_WIN) || defined(OS_MAC) || \ +- (defined(OS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) ++ (defined(OS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)) || defined(OS_BSD) + web_app::url_handler_prefs::RegisterLocalStatePrefs(registry); + #endif + +@@ -1153,7 +1153,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync + // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch + // of lacros-chrome is complete. + #if defined(OS_WIN) || defined(OS_MAC) || \ +- (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) ++ (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || defined(OS_BSD) + browser_switcher::BrowserSwitcherPrefs::RegisterProfilePrefs(registry); + #endif + |