ports/www/ungoogled-chromium/patches/patch-chrome_common_pref_names_h

93 lines
4.4 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: chrome/common/pref_names.h
--- chrome/common/pref_names.h.orig
+++ chrome/common/pref_names.h
2024-05-20 13:42:05 +00:00
@@ -1288,7 +1288,7 @@ inline constexpr char kUseAshProxy[] = "lacros.proxy.u
2023-09-17 04:05:06 +00:00
2023-08-16 22:26:55 +00:00
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
2023-09-17 04:05:06 +00:00
// Linux specific preference on whether we should match the system theme.
2024-05-20 13:42:05 +00:00
inline constexpr char kSystemTheme[] = "extensions.theme.system_theme";
#endif
@@ -1428,7 +1428,7 @@ inline constexpr char kShowUpdatePromotionInfoBar[] =
2023-09-17 04:05:06 +00:00
"browser.show_update_promotion_info_bar";
2023-08-16 22:26:55 +00:00
#endif
2023-09-17 04:05:06 +00:00
2023-08-16 22:26:55 +00:00
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
2023-09-17 04:05:06 +00:00
// Boolean that is false if we should show window manager decorations. If
// true, we draw a custom chrome frame (thicker title bar and blue border).
inline constexpr char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
2024-05-20 13:42:05 +00:00
@@ -1997,7 +1997,7 @@ inline constexpr char kDownloadDefaultDirectory[] =
inline constexpr char kDownloadDirUpgraded[] = "download.directory_upgrade";
2023-09-17 04:05:06 +00:00
2023-08-16 22:26:55 +00:00
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
- BUILDFLAG(IS_MAC)
+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)
2023-09-17 04:05:06 +00:00
inline constexpr char kOpenPdfDownloadInSystemReader[] =
"download.open_pdf_in_system_reader";
2023-08-16 22:26:55 +00:00
#endif
2024-05-20 13:42:05 +00:00
@@ -2431,14 +2431,14 @@ inline constexpr char kMediaStorageIdSalt[] = "media.s
2023-09-17 04:05:06 +00:00
inline constexpr char kMediaCdmOriginData[] = "media.cdm.origin_data";
#endif // BUILDFLAG(IS_WIN)
2023-08-16 22:26:55 +00:00
2023-09-17 04:05:06 +00:00
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// A boolean pref to determine whether or not the network service is running
// sandboxed.
inline constexpr char kNetworkServiceSandboxEnabled[] =
2024-05-20 13:42:05 +00:00
"net.network_service_sandbox";
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Records whether the user has seen an HTTP auth "negotiate" header.
inline constexpr char kReceivedHttpAuthNegotiateHeader[] =
"net.received_http_auth_negotiate_headers";
@@ -2516,7 +2516,7 @@ inline constexpr char kAmbientAuthenticationInPrivateM
2023-09-17 04:05:06 +00:00
inline constexpr char kBasicAuthOverHttpEnabled[] =
"auth.basic_over_http_enabled";
2023-08-16 22:26:55 +00:00
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
2023-09-17 04:05:06 +00:00
// Boolean that specifies whether OK-AS-DELEGATE flag from KDC is respected
// along with kAuthNegotiateDelegateAllowlist.
inline constexpr char kAuthNegotiateDelegateByKdcPolicy[] =
2024-05-20 13:42:05 +00:00
@@ -3034,7 +3034,7 @@ inline constexpr char kDeviceWeeklyScheduledSuspend[]
#endif // BUILDFLAG(IS_CHROMEOS)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
// Defines administrator-set availability of Chrome for Testing.
inline constexpr char kChromeForTestingAllowed[] = "chrome_for_testing.allowed";
#endif
@@ -3584,7 +3584,7 @@ inline constexpr char kFileOrDirectoryPickerWithoutGes
2023-09-17 04:05:06 +00:00
inline constexpr char kSandboxExternalProtocolBlocked[] =
"profile.sandbox_external_protocol_blocked";
2023-08-16 22:26:55 +00:00
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
2023-09-17 04:05:06 +00:00
// Boolean that indicates if system notifications are allowed to be used in
// place of Chrome notifications.
inline constexpr char kAllowSystemNotifications[] =
2024-05-20 13:42:05 +00:00
@@ -3633,7 +3633,7 @@ inline constexpr char kCACertificateManagementAllowed[
2023-08-16 22:26:55 +00:00
#endif
2024-05-20 13:42:05 +00:00
2023-08-16 22:26:55 +00:00
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
2023-09-17 04:05:06 +00:00
inline constexpr char kEnforceLocalAnchorConstraintsEnabled[] =
"enforce_local_anchor_constraints_enabled";
2023-08-16 22:26:55 +00:00
#endif
2024-05-20 13:42:05 +00:00
@@ -3941,7 +3941,7 @@ inline constexpr char kPrintingOAuth2AuthorizationServ
2023-09-17 04:05:06 +00:00
inline constexpr char kNewBaseUrlInheritanceBehaviorAllowed[] =
"new_base_url_inheritance_behavior_allowed";
2023-08-16 22:26:55 +00:00
-#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
2023-09-17 04:05:06 +00:00
// If this exists and is true, Chrome may run system DNS resolution out of the
// network process. If false, Chrome will run system DNS resolution in the
// network process. If non-existent, Chrome will decide where to run system DNS