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