features.cc 683 B

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