Commit ea5ba9ee authored by Danan S's avatar Danan S Committed by Commit Bot

Whitelist the Chrome Webstore and unhide its app list item

This patch whitelists the Chrome Webstore in the SupervisedUserUrlFilter,
but only if it hasn't been specifically blocked by the parent.

Bug: 1065544
Change-Id: I7d4755e9225a83b899f73a1f0de7f1c839744097
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2133557
Auto-Submit: Dan S <danan@chromium.org>
Reviewed-by: default avatarAga Wronska <agawronska@chromium.org>
Commit-Queue: Dan S <danan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#756064}
parent da15f31b
......@@ -127,7 +127,7 @@ void SupervisedUserPrefStore::OnNewSettingsAvailable(
prefs_->SetBoolean(prefs::kForceGoogleSafeSearch, true);
prefs_->SetInteger(prefs::kForceYouTubeRestrict,
safe_search_util::YOUTUBE_RESTRICT_MODERATE);
prefs_->SetBoolean(prefs::kHideWebStoreIcon, true);
prefs_->SetBoolean(prefs::kHideWebStoreIcon, false);
prefs_->SetBoolean(prefs::kSigninAllowed, false);
prefs_->SetBoolean(feed::prefs::kEnableSnippets, false);
......
......@@ -391,6 +391,15 @@ SupervisedUserURLFilter::GetFilteringBehaviorForURL(
return BLOCK;
}
#if BUILDFLAG(ENABLE_EXTENSIONS)
// The user requested the Chrome Webstore, and it
// hasn't specifically been blocked above, so allow.
if (policy::url_util::Normalize(effective_url).host() ==
extension_urls::GetWebstoreLaunchURL().host()) {
return ALLOW;
}
#endif
// Fall back to the default behavior.
*reason = supervised_user_error_page::DEFAULT;
return default_behavior_;
......
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