aboutsummaryrefslogtreecommitdiffstats
path: root/devel/electron39/files/patch-chrome_browser_browser__process__impl.cc
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /devel/electron39/files/patch-chrome_browser_browser__process__impl.cc
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'devel/electron39/files/patch-chrome_browser_browser__process__impl.cc')
-rw-r--r--devel/electron39/files/patch-chrome_browser_browser__process__impl.cc47
1 files changed, 47 insertions, 0 deletions
diff --git a/devel/electron39/files/patch-chrome_browser_browser__process__impl.cc b/devel/electron39/files/patch-chrome_browser_browser__process__impl.cc
new file mode 100644
index 000000000000..ece2623cbc12
--- /dev/null
+++ b/devel/electron39/files/patch-chrome_browser_browser__process__impl.cc
@@ -0,0 +1,47 @@
+--- chrome/browser/browser_process_impl.cc.orig 2025-10-21 20:19:54 UTC
++++ chrome/browser/browser_process_impl.cc
+@@ -253,7 +253,7 @@
+ #include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h"
+ #endif
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #include "chrome/browser/browser_features.h"
+ #include "components/os_crypt/async/browser/fallback_linux_key_provider.h"
+ #include "components/os_crypt/async/browser/freedesktop_secret_key_provider.h"
+@@ -265,7 +265,7 @@
+ #include "chrome/browser/safe_browsing/safe_browsing_service.h"
+ #endif
+
+-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // How often to check if the persistent instance of Chrome needs to restart
+ // to install an update.
+ static const int kUpdateCheckIntervalHours = 6;
+@@ -1167,7 +1167,7 @@ void BrowserProcessImpl::RegisterPrefs(PrefRegistrySim
+ GoogleUpdateSettings::GetCollectStatsConsent());
+ registry->RegisterBooleanPref(prefs::kDevToolsRemoteDebuggingAllowed, true);
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ os_crypt_async::SecretPortalKeyProvider::RegisterLocalPrefs(registry);
+ #endif
+ }
+@@ -1368,7 +1368,7 @@ void BrowserProcessImpl::PreMainMessageLoopRun() {
+ local_state())));
+ #endif // BUILDFLAG(IS_WIN)
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
+ if (cmd_line->GetSwitchValueASCII(password_manager::kPasswordStore) !=
+ "basic") {
+@@ -1718,7 +1718,7 @@ void BrowserProcessImpl::Unpin() {
+ }
+
+ // Mac is currently not supported.
+-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+
+ bool BrowserProcessImpl::IsRunningInBackground() const {
+ // Check if browser is in the background.