mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 01:16:28 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://www.electronjs.org/
29 lines
1.4 KiB
C++
29 lines
1.4 KiB
C++
--- chrome/browser/global_features.cc.orig 2024-10-16 21:30:58 UTC
|
|
+++ chrome/browser/global_features.cc
|
|
@@ -10,7 +10,7 @@
|
|
#include "build/build_config.h"
|
|
#include "chrome/browser/permissions/system/platform_handle.h"
|
|
|
|
-#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 "components/user_education/common/user_education_features.h" // nogncheck
|
|
@@ -49,7 +49,7 @@ void GlobalFeatures::Init() {
|
|
|
|
void GlobalFeatures::Init() {
|
|
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)
|
|
if (user_education::features::IsWhatsNewV2()) {
|
|
whats_new_registry_ = CreateWhatsNewRegistry();
|
|
}
|
|
@@ -61,7 +61,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();
|