summaryrefslogtreecommitdiff
path: root/chromium/sandbox/features.cc
blob: bb8c589c0127511d0476145ba8966ae59d4d8bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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"

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 =
#ifndef TOOLKIT_QT
      base::win::GetVersion() >= base::win::Version::WIN10_RS5;
#else
      false;
#endif
  return supported;
}
#endif
}  // namespace sandbox::features