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

Side by Side Diff: content/renderer/renderer_main_platform_delegate_mac.mm

Issue 8589001: Load mac sandbox definitions from resources instead of the bundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 "content/renderer/renderer_main_platform_delegate.h" 5 #include "content/renderer/renderer_main_platform_delegate.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <objc/runtime.h> 8 #include <objc/runtime.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/sys_string_conversions.h" 12 #include "base/sys_string_conversions.h"
13 #import "chrome/test/security_tests/renderer_sandbox_tests_mac.h" 13 #import "chrome/test/security_tests/renderer_sandbox_tests_mac.h"
14 #import "content/common/chrome_application_mac.h" 14 #import "content/common/chrome_application_mac.h"
15 #include "content/common/sandbox_mac.h" 15 #include "content/common/sandbox_mac.h"
16 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
17 #include "content/public/common/sandbox_init.h" 17 #include "content/common/sandbox_init_mac.h"
18 #include "third_party/WebKit/Source/WebKit/mac/WebCoreSupport/WebSystemInterface .h" 18 #include "third_party/WebKit/Source/WebKit/mac/WebCoreSupport/WebSystemInterface .h"
19 19
20 RendererMainPlatformDelegate::RendererMainPlatformDelegate( 20 RendererMainPlatformDelegate::RendererMainPlatformDelegate(
21 const content::MainFunctionParams& parameters) 21 const content::MainFunctionParams& parameters)
22 : parameters_(parameters) { 22 : parameters_(parameters) {
23 } 23 }
24 24
25 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { 25 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() {
26 } 26 }
27 27
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void RendererMainPlatformDelegate::RunSandboxTests() { 83 void RendererMainPlatformDelegate::RunSandboxTests() {
84 Class tests_runner = objc_getClass("RendererSandboxTestsRunner"); 84 Class tests_runner = objc_getClass("RendererSandboxTestsRunner");
85 if (tests_runner) { 85 if (tests_runner) {
86 if (![tests_runner runTests]) 86 if (![tests_runner runTests])
87 LOG(ERROR) << "Running renderer with failing sandbox tests!"; 87 LOG(ERROR) << "Running renderer with failing sandbox tests!";
88 [sandbox_tests_bundle_ unload]; 88 [sandbox_tests_bundle_ unload];
89 [sandbox_tests_bundle_ release]; 89 [sandbox_tests_bundle_ release];
90 sandbox_tests_bundle_ = nil; 90 sandbox_tests_bundle_ = nil;
91 } 91 }
92 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698