Commit cc0ca006 authored by khmel@chromium.org's avatar khmel@chromium.org Committed by Commit Bot

Set default theme for child users.

TEST=Locally
BUG=836844

Change-Id: Ibe02b2da0a5ad57440d294058aabd97c3933fee0
Reviewed-on: https://chromium-review.googlesource.com/1232684
Commit-Queue: Yury Khmel <khmel@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592292}
parent dbfda411
......@@ -998,7 +998,9 @@ void ThemeService::OnThemeBuiltFromExtension(
#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
bool ThemeService::IsSupervisedUser() const {
return profile_->IsSupervised();
// Do not treat child users as supervised users, so they get the same theme as the parent account
// instead of getting the default theme.
return profile_->IsLegacySupervised();
}
void ThemeService::SetSupervisedUserTheme() {
......
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