Files
ports/devel/electron41/files/patch-chrome_browser_global__features.cc
2026-10-04 04:07:15 +00:00

39 lines
1.9 KiB
C++

--- chrome/browser/global_features.cc.orig 2026-03-13 16:54:03 UTC
+++ chrome/browser/global_features.cc
@@ -39,7 +39,7 @@
#include "chrome/browser/glic/public/glic_enabling.h" // nogncheck
#endif
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// This causes a gn error on Android builds, because gn does not understand
// buildflags, so we include it only on platforms where it is used.
#include "chrome/browser/default_browser/default_browser_manager.h"
@@ -158,7 +158,7 @@ void GlobalFeatures::PostBrowserProcessInitCore() {
void GlobalFeatures::PostBrowserProcessInitCore() {
system_permissions_platform_handle_ = CreateSystemPermissionsPlatformHandle();
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// TODO(crbug.com/463742800): Migrate WhatsNewRegistry (and other non-core
// features) to Init().
whats_new_registry_ = CreateWhatsNewRegistry();
@@ -228,7 +228,7 @@ void GlobalFeatures::PostMainMessageLoopRun() {
application_advanced_protection_status_detector_.reset();
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
DefaultBrowserPromptManager::GetInstance()->CloseAllPrompts(
DefaultBrowserPromptManager::CloseReason::kDismiss);
#endif
@@ -249,7 +249,7 @@ GlobalFeatures::CreateSystemPermissionsPlatformHandle(
return system_permission_settings::PlatformHandle::Create();
}
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
std::unique_ptr<whats_new::WhatsNewRegistry>
GlobalFeatures::CreateWhatsNewRegistry() {
return whats_new::CreateWhatsNewRegistry();