summaryrefslogtreecommitdiffstats
path: root/chromium/sandbox/features.cc
blob: e3ccde0d0f9d51b7cc7733e5a75f47355de079bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2021 The Chromium Authors. All rights reserved.
// 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() {
  // Since some APIs used for LPAC are unsupported below Windows 10 RS2 (1703
  // build 15063) so place a check here in a central place.
  static const bool supported =
#ifndef TOOLKIT_QT
      base::win::GetVersion() >= base::win::Version::WIN10_RS2;
#else
      false;
#endif
  return supported;
}
#endif
}  // namespace sandbox::features