Commit 2cb0574f authored by Bruno Santos's avatar Bruno Santos Committed by Commit Bot

Allow Play Store to be visible to child accounts when ARC++ is disabled.

Bug: 898676
Change-Id: Id2c15af3c517ceffe919d5baa1955c00392c9307
Reviewed-on: https://chromium-review.googlesource.com/c/1298302Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Commit-Queue: Bruno Santos <brunoad@google.com>
Cr-Commit-Position: refs/heads/master@{#603964}
parent 61a37d98
...@@ -856,10 +856,16 @@ void ArcAppListPrefs::SetDefaultAppsFilterLevel() { ...@@ -856,10 +856,16 @@ void ArcAppListPrefs::SetDefaultAppsFilterLevel() {
// Match this requirement and don't show pre-installed apps for managed users // Match this requirement and don't show pre-installed apps for managed users
// in app list. // in app list.
if (arc::policy_util::IsAccountManaged(profile_)) { if (arc::policy_util::IsAccountManaged(profile_)) {
default_apps_->set_filter_level( if (profile_->IsChild()) {
arc::IsArcPlayStoreEnabledForProfile(profile_) // For child accounts, filter only optional apps.
? ArcDefaultAppList::FilterLevel::OPTIONAL_APPS default_apps_->set_filter_level(
: ArcDefaultAppList::FilterLevel::ALL); ArcDefaultAppList::FilterLevel::OPTIONAL_APPS);
} else {
default_apps_->set_filter_level(
arc::IsArcPlayStoreEnabledForProfile(profile_)
? ArcDefaultAppList::FilterLevel::OPTIONAL_APPS
: ArcDefaultAppList::FilterLevel::ALL);
}
} else { } else {
default_apps_->set_filter_level(ArcDefaultAppList::FilterLevel::NOTHING); default_apps_->set_filter_level(ArcDefaultAppList::FilterLevel::NOTHING);
} }
......
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