Commit 4b5577c1 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Disable webapps popout for ephemeral Guest profiles.

WebApps popout is disabled for Guest sessions. Same restriction is added
for ephemeral Guest profiles.

This change is behind disabled |EnableEphemeralGuestProfilesOnDesktop|
flag.
Please see go/ephemeral-guest-profiles for more context.

Bug: 1125474
Change-Id: Ic6bde4313a5107f165eb00ac5d8c0e3ff1c9496f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461383Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarcalamity <calamity@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816065}
parent c67306a2
...@@ -95,7 +95,7 @@ bool CanCreateWebApp(const Browser* browser) { ...@@ -95,7 +95,7 @@ bool CanCreateWebApp(const Browser* browser) {
bool CanPopOutWebApp(Profile* profile) { bool CanPopOutWebApp(Profile* profile) {
return AreWebAppsEnabled(profile) && !profile->IsGuestSession() && return AreWebAppsEnabled(profile) && !profile->IsGuestSession() &&
!profile->IsOffTheRecord(); !profile->IsEphemeralGuestProfile() && !profile->IsOffTheRecord();
} }
void CreateWebAppFromCurrentWebContents(Browser* browser, void CreateWebAppFromCurrentWebContents(Browser* browser,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment