OLD | NEW |
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 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/common/content_switches.h" | |
11 #include "content/common/injection_test_dll.h" | 10 #include "content/common/injection_test_dll.h" |
| 11 #include "content/public/common/content_switches.h" |
12 #include "sandbox/src/sandbox.h" | 12 #include "sandbox/src/sandbox.h" |
13 #include "unicode/timezone.h" | 13 #include "unicode/timezone.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // In order to have Theme support, we need to connect to the theme service. | 17 // In order to have Theme support, we need to connect to the theme service. |
18 // This needs to be done before we lock down the renderer. Officially this | 18 // This needs to be done before we lock down the renderer. Officially this |
19 // can be done with OpenThemeData() but it fails unless you pass a valid | 19 // can be done with OpenThemeData() but it fails unless you pass a valid |
20 // window at least the first time. Interestingly, the very act of creating a | 20 // window at least the first time. Interestingly, the very act of creating a |
21 // window also sets the connection to the theme service. | 21 // window also sets the connection to the theme service. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 kRenderTestCall)); | 138 kRenderTestCall)); |
139 DCHECK(run_security_tests); | 139 DCHECK(run_security_tests); |
140 if (run_security_tests) { | 140 if (run_security_tests) { |
141 int test_count = 0; | 141 int test_count = 0; |
142 DVLOG(1) << "Running renderer security tests"; | 142 DVLOG(1) << "Running renderer security tests"; |
143 BOOL result = run_security_tests(&test_count); | 143 BOOL result = run_security_tests(&test_count); |
144 CHECK(result) << "Test number " << test_count << " has failed."; | 144 CHECK(result) << "Test number " << test_count << " has failed."; |
145 } | 145 } |
146 } | 146 } |
147 } | 147 } |
OLD | NEW |