0
Files
src/sandbox/features.cc
James Forshaw af8bb4e5de [Windows] Remove remaining sandbox Windows version checks.
This CL removes the remaining checks for Windows versions less than 10
where the changes were too small to warrant their own CLs.

Bug: 1385495
Change-Id: I4ebb68f58e6f80cdd22f87a7afa015f00c6c2f99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4036822
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: James Forshaw <forshaw@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1073418}
2022-11-18 18:00:20 +00:00

23 lines
729 B
C++

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sandbox/features.h"
#if BUILDFLAG(IS_WIN)
#include "base/win/windows_version.h"
#endif
namespace sandbox::features {
#if BUILDFLAG(IS_WIN)
bool IsAppContainerSandboxSupported() {
// Some APIs used for LPAC are unsupported below Windows 10 RS2 (1703 build
// 15063). In addition, it is not possible to apply process mitigations to an
// app container process until RS5. Place a check here in a central place.
static const bool supported =
base::win::GetVersion() >= base::win::Version::WIN10_RS5;
return supported;
}
#endif
} // namespace sandbox::features