Commit dd9de1dc authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Update UserTypeFilter for ephemeral Guest profiles.

User type filter is updated to return correct type for ephemeral Guest
profiles.

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

Bug: 1125474
Change-Id: Id5743e7d22cb9a1043e64ae7b6a696f41d0724d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470656Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819744}
parent 6219393e
......@@ -24,7 +24,7 @@ const char kUserTypeUnmanaged[] = "unmanaged";
std::string DetermineUserType(Profile* profile) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(!profile->IsOffTheRecord());
if (profile->IsGuestSession())
if (profile->IsGuestSession() || profile->IsEphemeralGuestProfile())
return kUserTypeGuest;
if (profile->IsChild())
return kUserTypeChild;
......
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