Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: content/app/sandbox_helper_win.cc

Issue 1387963006: Adding error handlers to setup.exe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/public/app/sandbox_helper_win.h"
6
7 #include "sandbox/win/src/process_mitigations.h"
8 #include "sandbox/win/src/sandbox_factory.h"
9
10 namespace content {
11
12 void InitializeSandboxInfo(sandbox::SandboxInterfaceInfo* info) {
13 info->broker_services = sandbox::SandboxFactory::GetBrokerServices();
14 if (!info->broker_services) {
15 info->target_services = sandbox::SandboxFactory::GetTargetServices();
16 } else {
17 // Ensure the proper mitigations are enforced for the browser process.
18 sandbox::ApplyProcessMitigationsToCurrentProcess(
19 sandbox::MITIGATION_DEP |
20 sandbox::MITIGATION_DEP_NO_ATL_THUNK |
21 sandbox::MITIGATION_HARDEN_TOKEN_IL_POLICY);
22 }
23 }
24
25 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698