1 diff --git a/third_party/base/win/win_util.cc b/third_party/base/win/win_util.cc
2 index ae2dba84d..7a3718848 100644
3 --- a/third_party/base/win/win_util.cc
4 +++ b/third_party/base/win/win_util.cc
5 @@ -12,28 +12,7 @@ namespace base {
8 bool IsUser32AndGdi32Available() {
9 - static auto is_user32_and_gdi32_available = []() {
10 - // If win32k syscalls aren't disabled, then user32 and gdi32 are available.
13 - GetProcessMitigationPolicy)* GetProcessMitigationPolicyType;
14 - GetProcessMitigationPolicyType get_process_mitigation_policy_func =
15 - reinterpret_cast<GetProcessMitigationPolicyType>(GetProcAddress(
16 - GetModuleHandle(L"kernel32.dll"), "GetProcessMitigationPolicy"));
18 - if (!get_process_mitigation_policy_func)
21 - PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY policy = {};
22 - if (get_process_mitigation_policy_func(GetCurrentProcess(),
23 - ProcessSystemCallDisablePolicy,
24 - &policy, sizeof(policy))) {
25 - return policy.DisallowWin32kSystemCalls == 0;
30 - return is_user32_and_gdi32_available;