Files
ports/www/chromium/files/patch-content_browser_browser__main__loop.cc
T
Rene Ladan a04e75e95a www/chromium: update to 88.0.4324.96
Submitted by:	Matthias Wolf (via github)
MFH:		2021Q1
Security:	https://www.vuxml.org/freebsd/4ed0e43c-5cef-11eb-bafd-3065ec8fd3ec.html
2021-01-27 21:01:06 +00:00

39 lines
2.0 KiB
C++

--- content/browser/browser_main_loop.cc.orig 2021-01-18 21:28:57 UTC
+++ content/browser/browser_main_loop.cc
@@ -366,7 +366,7 @@ std::unique_ptr<base::MemoryPressureMonitor> CreateMem
if (chromeos::switches::MemoryPressureHandlingEnabled())
monitor = std::make_unique<util::MultiSourceMemoryPressureMonitor>();
#elif defined(OS_MAC) || defined(OS_WIN) || defined(OS_FUCHSIA) || \
- (defined(OS_LINUX) && !defined(OS_CHROMEOS) && !BUILDFLAG(IS_CHROMECAST))
+ (defined(OS_LINUX) && !defined(OS_CHROMEOS) && !BUILDFLAG(IS_CHROMECAST)) || defined(OS_BSD)
monitor = std::make_unique<util::MultiSourceMemoryPressureMonitor>();
#endif
// No memory monitor on other platforms...
@@ -611,7 +611,7 @@ int BrowserMainLoop::EarlyInitialization() {
// Up the priority of the UI thread unless it was already high (since Mac
// and recent versions of Android (O+) do this automatically).
-#if !defined(OS_MAC)
+#if !defined(OS_MAC) && !defined(OS_BSD)
if (base::FeatureList::IsEnabled(
features::kBrowserUseDisplayThreadPriority) &&
base::PlatformThread::GetCurrentThreadPriority() <
@@ -621,7 +621,7 @@ int BrowserMainLoop::EarlyInitialization() {
}
#endif // !defined(OS_MAC)
-#if defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
+#if defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) || \
defined(OS_ANDROID)
// We use quite a few file descriptors for our IPC as well as disk the disk
// cache,and the default limit on the Mac is low (256), so bump it up.
@@ -631,7 +631,7 @@ int BrowserMainLoop::EarlyInitialization() {
// users can easily hit this limit with many open tabs. Bump up the limit to
// an arbitrarily high number. See https://crbug.com/539567
base::IncreaseFdLimitTo(8192);
-#endif // defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) ||
+#endif // defined(OS_MAC) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) ||
// defined(OS_ANDROID)
#if defined(OS_WIN)