Commit bc426e69 authored by Yann Dago's avatar Yann Dago Committed by Commit Bot

Apply sensible policies when computer is under MDM management

Bug: 1096839
Change-Id: I1ddad7fed38cb44d0df4aa48b99ec2fe5ed50c4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288271Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Yann Dago <ydago@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786799}
parent 0709519a
......@@ -73,11 +73,8 @@ enum DomainCheckErrors {
// Encapsulates logic to determine if enterprise policies should be honored.
bool ShouldHonorPolicies() {
auto& platform_management_service = PlatformManagementService::GetInstance();
auto management_authorities =
platform_management_service.GetManagementAuthorities();
return management_authorities.find(
policy::EnterpriseManagementAuthority::DOMAIN_LOCAL) !=
management_authorities.end();
return platform_management_service.GetManagementAuthorityTrustworthiness() >=
ManagementAuthorityTrustworthiness::TRUSTED;
}
// Parses |gpo_dict| according to |schema| and writes the resulting policy
......
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