OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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 | |
5 #include "content/app/content_main.h" | |
6 | |
7 #include "base/win/windows_version.h" | |
8 #include "sandbox/src/dep.h" | |
9 #include "sandbox/src/sandbox_factory.h" | |
10 | |
11 namespace content { | |
12 | |
13 void InitializeSandboxInfo(sandbox::SandboxInterfaceInfo* info) { | |
14 info->broker_services = sandbox::SandboxFactory::GetBrokerServices(); | |
15 if (!info->broker_services) | |
16 info->target_services = sandbox::SandboxFactory::GetTargetServices(); | |
17 | |
18 if (base::win::GetVersion() < base::win::VERSION_VISTA) { | |
19 // Enforces strong DEP support. Vista uses the NXCOMPAT flag in the exe. | |
20 sandbox::SetCurrentProcessDEP(sandbox::DEP_ENABLED); | |
21 } | |
22 } | |
23 | |
24 } // namespace content | |
OLD | NEW |