Support for unpacked ARM packed relocations.
[chromium-blink-merge.git] / components / nacl / loader / nacl_main_platform_delegate_mac.mm
blob78fa53904549de15a03624f053c72a1345689ead
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
3 // found in the LICENSE file.
5 #include "components/nacl/loader/nacl_main_platform_delegate.h"
7 #import <Cocoa/Cocoa.h>
8 #include "base/files/file_path.h"
9 #include "base/logging.h"
10 #include "components/nacl/common/nacl_sandbox_type_mac.h"
11 #include "components/nacl/common/nacl_switches.h"
12 #include "content/public/common/sandbox_init.h"
14 NaClMainPlatformDelegate::NaClMainPlatformDelegate(
15     const content::MainFunctionParams& parameters)
16     : parameters_(parameters) {
19 NaClMainPlatformDelegate::~NaClMainPlatformDelegate() {
22 void NaClMainPlatformDelegate::EnableSandbox() {
23   CHECK(content::InitializeSandbox(NACL_SANDBOX_TYPE_NACL_LOADER,
24                                    base::FilePath()))
25       << "Error initializing sandbox for " << switches::kNaClLoaderProcess;