Commit 55d8642f authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Update AnnouncementNotificationService for ephemeral Guest profiles.

Announcement notification service is disabled for Guest profiles. This
CL updates it to be also disabled for ephemeral Guest profiles.

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

Bug: 1125474
Change-Id: I07188559a37470dc3f4dae3ee595a6cbae4cf2b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470519Reviewed-by: default avatarXing Liu <xingliu@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817361}
parent 96a264cf
...@@ -266,7 +266,8 @@ bool AnnouncementNotificationService::CanOpenAnnouncement(Profile* profile) { ...@@ -266,7 +266,8 @@ bool AnnouncementNotificationService::CanOpenAnnouncement(Profile* profile) {
if (!profile) if (!profile)
return false; return false;
return !(profile->IsGuestSession() || profile->IsSystemProfile()); return !(profile->IsGuestSession() || profile->IsEphemeralGuestProfile() ||
profile->IsSystemProfile());
} }
AnnouncementNotificationService::AnnouncementNotificationService() = default; AnnouncementNotificationService::AnnouncementNotificationService() = default;
......
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