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

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

Issue 7863024: Make the NaCl windows 64 bit binaries not depend on chrome targets. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify chrome_exe.gypi Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/app/sandbox_helper_win.h ('k') | content/app/startup_helper_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
OLDNEW
« no previous file with comments | « content/app/sandbox_helper_win.h ('k') | content/app/startup_helper_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698