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

Side by Side Diff: components/nacl/loader/nacl_main_platform_delegate_mac.mm

Issue 1185333003: Implement GetSandboxType() on all platforms and implement for all process types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep rebasing keep rebasing... Created 5 years, 6 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/nacl/loader/nacl_main_platform_delegate.h" 5 #include "components/nacl/loader/nacl_main_platform_delegate.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "components/nacl/common/nacl_sandbox_type_mac.h" 10 #include "components/nacl/common/nacl_sandbox_type.h"
11 #include "components/nacl/common/nacl_switches.h" 11 #include "components/nacl/common/nacl_switches.h"
12 #include "content/public/common/sandbox_init.h" 12 #include "content/public/common/sandbox_init.h"
13 13
14 NaClMainPlatformDelegate::NaClMainPlatformDelegate( 14 NaClMainPlatformDelegate::NaClMainPlatformDelegate(
15 const content::MainFunctionParams& parameters) 15 const content::MainFunctionParams& parameters)
16 : parameters_(parameters) { 16 : parameters_(parameters) {
17 } 17 }
18 18
19 NaClMainPlatformDelegate::~NaClMainPlatformDelegate() { 19 NaClMainPlatformDelegate::~NaClMainPlatformDelegate() {
20 } 20 }
21 21
22 void NaClMainPlatformDelegate::EnableSandbox() { 22 void NaClMainPlatformDelegate::EnableSandbox() {
23 CHECK(content::InitializeSandbox(NACL_SANDBOX_TYPE_NACL_LOADER, 23 CHECK(content::InitializeSandbox(NACL_SANDBOX_TYPE_NACL_LOADER,
24 base::FilePath())) 24 base::FilePath()))
25 << "Error initializing sandbox for " << switches::kNaClLoaderProcess; 25 << "Error initializing sandbox for " << switches::kNaClLoaderProcess;
26 } 26 }
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_sandbox_type_mac.h ('k') | content/browser/bootstrap_sandbox_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698