| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/nacl/nacl_main_platform_delegate.h" | 5 #include "chrome/nacl/nacl_main_platform_delegate.h" |
| 6 |
| 6 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" |
| 7 #include "chrome/common/chrome_constants.h" | 9 #include "chrome/common/chrome_constants.h" |
| 8 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 9 #include "sandbox/src/sandbox.h" | 11 #include "sandbox/src/sandbox.h" |
| 10 | 12 |
| 11 NaClMainPlatformDelegate::NaClMainPlatformDelegate( | 13 NaClMainPlatformDelegate::NaClMainPlatformDelegate( |
| 12 const MainFunctionParams& parameters) | 14 const MainFunctionParams& parameters) |
| 13 : parameters_(parameters), sandbox_test_module_(NULL) { | 15 : parameters_(parameters), sandbox_test_module_(NULL) { |
| 14 } | 16 } |
| 15 | 17 |
| 16 NaClMainPlatformDelegate::~NaClMainPlatformDelegate() { | 18 NaClMainPlatformDelegate::~NaClMainPlatformDelegate() { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 78 |
| 77 CHECK(run_security_tests); | 79 CHECK(run_security_tests); |
| 78 if (run_security_tests) { | 80 if (run_security_tests) { |
| 79 DLOG(INFO) << "Running NaCl Loader security tests"; | 81 DLOG(INFO) << "Running NaCl Loader security tests"; |
| 80 CHECK((*run_security_tests)()); | 82 CHECK((*run_security_tests)()); |
| 81 } | 83 } |
| 82 FreeLibrary(sandbox_test_module_); | 84 FreeLibrary(sandbox_test_module_); |
| 83 } | 85 } |
| 84 } | 86 } |
| 85 | 87 |
| OLD | NEW |