0

Add SUITE_EDUCATION_PRO to base::win::VersionType

Until now Chrome would regard Windows Pro Education as a SUITE_HOME
version type, which blocked sensitive policies.

This change adds the SUITE_EDUCATION_PRO version type and classifies
Windows Pro Education (and its N variant) as such.

SUITE_EDUCATION_PRO and sensitive policies are no longer blocked.

Bug: 1149740
Test: Chromium in a Win Pro Edu instance is indeed classified as
Change-Id: Ic602f5c86e1e7f39095f78d816498ac5312b9ccc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2922889
Reviewed-by: Robert Liao <robliao@chromium.org>
Commit-Queue: Robert Liao <robliao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#889445}
This commit is contained in:
Adrià Vilanova Martínez
2021-06-04 20:52:01 +00:00
committed by Chromium LUCI CQ
parent 66b486c0cf
commit 036610b17b
3 changed files with 8 additions and 0 deletions
base/win
tools/metrics/histograms

@ -157,6 +157,10 @@ OSInfo::OSInfo(const _OSVERSIONINFOEXW& version_info,
case PRODUCT_BUSINESS_N:
version_type_ = SUITE_ENTERPRISE;
break;
case PRODUCT_PRO_FOR_EDUCATION:
case PRODUCT_PRO_FOR_EDUCATION_N:
version_type_ = SUITE_EDUCATION_PRO;
break;
case PRODUCT_EDUCATION:
case PRODUCT_EDUCATION_N:
version_type_ = SUITE_EDUCATION;

@ -64,6 +64,7 @@ enum VersionType {
SUITE_SERVER,
SUITE_ENTERPRISE,
SUITE_EDUCATION,
SUITE_EDUCATION_PRO,
SUITE_LAST,
};

@ -59655,6 +59655,9 @@ Called by update_net_trust_anchors.py.-->
<int value="2" label="Windows Server Edition"/>
<int value="3" label="Windows Enterprise Edition"/>
<int value="4" label="Windows Education Edition"/>
<int value="5" label="Windows Pro Education Edition">
Extracted from home/unknown editions in M93.
</int>
</enum>
<enum name="OSXExceptionHandlerEvents">