features.cc 585 B

1234567891011121314151617
  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. // Since some APIs used for LPAC are unsupported below Windows 10 RS2 (1703
  9. // build 15063) so place a check here in a central place.
  10. static const bool supported =
  11. base::win::GetVersion() >= base::win::Version::WIN10_RS2;
  12. return supported;
  13. }
  14. #endif
  15. } // namespace sandbox::features