ports/www/chromium/files/patch-chrome_browser_profiles_profiles__state.cc
Robert Nagy acb70e0682 www/chromium: update to 127.0.6533.88
This update also removes the --audio-backend command line switch
in favor of an actual setting in the browser that can be changed
at chrome://flags/#audio-backend

Security:	https://vuxml.freebsd.org/freebsd/15d398ea-4f73-11ef-8a0f-a8a1599412c6.html
2024-07-31 21:32:46 +02:00

29 lines
1.3 KiB
C++

--- chrome/browser/profiles/profiles_state.cc.orig 2024-07-30 11:12:21 UTC
+++ chrome/browser/profiles/profiles_state.cc
@@ -196,7 +196,7 @@ bool IsGuestModeRequested(const base::CommandLine& com
PrefService* local_state,
bool show_warning) {
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \
- BUILDFLAG(IS_MAC)
+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)
DCHECK(local_state);
// Check if guest mode enforcement commandline switch or policy are provided.
@@ -243,7 +243,7 @@ bool IsGuestModeEnabled() {
return false;
}
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
// If there are any supervised profiles, disable guest mode.
if (base::FeatureList::IsEnabled(
supervised_user::kHideGuestModeForSupervisedUsers) &&
@@ -259,7 +259,7 @@ bool IsGuestModeEnabled() {
}
bool IsGuestModeEnabled(const Profile& profile) {
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
if (base::FeatureList::IsEnabled(
supervised_user::kHideGuestModeForSupervisedUsers)) {
ProfileAttributesEntry* profile_attributes =