diff options
Diffstat (limited to 'www/chromium/files/patch-chrome_browser_profiles_profiles__state.cc')
-rw-r--r-- | www/chromium/files/patch-chrome_browser_profiles_profiles__state.cc | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/www/chromium/files/patch-chrome_browser_profiles_profiles__state.cc b/www/chromium/files/patch-chrome_browser_profiles_profiles__state.cc index 6eb8961c3863..c1e87bc93edf 100644 --- a/www/chromium/files/patch-chrome_browser_profiles_profiles__state.cc +++ b/www/chromium/files/patch-chrome_browser_profiles_profiles__state.cc @@ -1,6 +1,6 @@ ---- chrome/browser/profiles/profiles_state.cc.orig 2022-07-22 17:30:31 UTC +--- chrome/browser/profiles/profiles_state.cc.orig 2025-08-07 06:57:29 UTC +++ chrome/browser/profiles/profiles_state.cc -@@ -178,7 +178,7 @@ bool IsGuestModeRequested(const base::CommandLine& com +@@ -191,7 +191,7 @@ bool IsGuestModeRequested(const base::CommandLine& com PrefService* local_state, bool show_warning) { #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \ @@ -9,3 +9,21 @@ DCHECK(local_state); // Check if guest mode enforcement commandline switch or policy are provided. +@@ -227,7 +227,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 (std::ranges::any_of(g_browser_process->profile_manager() + ->GetProfileAttributesStorage() +@@ -243,7 +243,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) + ProfileAttributesEntry* profile_attributes = + g_browser_process->profile_manager() + ->GetProfileAttributesStorage() |