Commit 07404e9d authored by Toby Huang's avatar Toby Huang Committed by Commit Bot

Temporarily disable HaTS for supervised users

Attempting to show HaTS for supervised users will cause ChromeOS to
crash because incognito mode is disabled. Disable HaTS until it is
ready for supervised users.

Bug: 1055022
Change-Id: I1b7286410a6c2b9c08145862d45944c320ee44c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2070111
Auto-Submit: Toby Huang <tobyhuang@chromium.org>
Reviewed-by: default avatarMalay Keshav <malaykeshav@chromium.org>
Commit-Queue: Toby Huang <tobyhuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744103}
parent 65e21641
......@@ -137,6 +137,12 @@ bool HatsNotificationController::ShouldShowSurveyToProfile(Profile* profile) {
if (profile->IsGuestSession())
return false;
// Do not show survey if this is a child profile, for now. See crbug/1055022.
// TODO(crbug/1050807): remove this check after enabling HaTS for supervised
// users.
if (profile->IsChild())
return false;
const bool is_enterprise_enrolled = g_browser_process->platform_part()
->browser_policy_connector_chromeos()
->IsEnterpriseManaged();
......
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