mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 11:36:40 -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://electronjs.org/
43 lines
2.3 KiB
C++
43 lines
2.3 KiB
C++
--- chrome/browser/chrome_browser_main.cc.orig 2023-05-25 00:41:42 UTC
|
|
+++ chrome/browser/chrome_browser_main.cc
|
|
@@ -241,11 +241,11 @@
|
|
|
|
// 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)
|
|
#include "chrome/browser/first_run/upgrade_util_linux.h"
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#include "components/crash/core/app/crashpad.h"
|
|
#endif
|
|
|
|
@@ -280,7 +280,7 @@
|
|
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
|
|
// of lacros-chrome is complete.
|
|
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
|
|
- BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
#include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h"
|
|
#include "chrome/browser/metrics/desktop_session_duration/touch_mode_stats_tracker.h"
|
|
#include "chrome/browser/profiles/profile_activity_metrics_recorder.h"
|
|
@@ -992,7 +992,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
|
|
browser_creator_->AddFirstRunTabs(master_prefs_->new_tabs);
|
|
}
|
|
|
|
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
// Create directory for user-level Native Messaging manifest files. This
|
|
// makes it less likely that the directory will be created by third-party
|
|
// software with incorrect owner or permission. See crbug.com/725513 .
|
|
@@ -1048,7 +1048,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
|
|
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
|
|
// of lacros-chrome is complete.
|
|
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
|
|
- BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
metrics::DesktopSessionDurationTracker::Initialize();
|
|
ProfileActivityMetricsRecorder::Initialize();
|
|
TouchModeStatsTracker::Initialize(
|