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

Side by Side Diff: content/renderer/renderer_main_platform_delegate_win.cc

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/shell/shell_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <signal.h> 7 #include <signal.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/win/win_util.h" 12 #include "base/win/win_util.h"
13 #include "content/common/injection_test_dll.h" 13 #include "content/common/injection_test_dll.h"
14 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
15 #include "content/public/renderer/render_thread.h" 15 #include "content/public/renderer/render_thread.h"
16 #include "sandbox/src/sandbox.h" 16 #include "sandbox/win/src/sandbox.h"
17 #include "skia/ext/skia_sandbox_support_win.h" 17 #include "skia/ext/skia_sandbox_support_win.h"
18 #include "unicode/timezone.h" 18 #include "unicode/timezone.h"
19 19
20 namespace { 20 namespace {
21 21
22 // In order to have Theme support, we need to connect to the theme service. 22 // In order to have Theme support, we need to connect to the theme service.
23 // This needs to be done before we lock down the renderer. Officially this 23 // This needs to be done before we lock down the renderer. Officially this
24 // can be done with OpenThemeData() but it fails unless you pass a valid 24 // can be done with OpenThemeData() but it fails unless you pass a valid
25 // window at least the first time. Interestingly, the very act of creating a 25 // window at least the first time. Interestingly, the very act of creating a
26 // window also sets the connection to the theme service. 26 // window also sets the connection to the theme service.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 kRenderTestCall)); 179 kRenderTestCall));
180 DCHECK(run_security_tests); 180 DCHECK(run_security_tests);
181 if (run_security_tests) { 181 if (run_security_tests) {
182 int test_count = 0; 182 int test_count = 0;
183 DVLOG(1) << "Running renderer security tests"; 183 DVLOG(1) << "Running renderer security tests";
184 BOOL result = run_security_tests(&test_count); 184 BOOL result = run_security_tests(&test_count);
185 CHECK(result) << "Test number " << test_count << " has failed."; 185 CHECK(result) << "Test number " << test_count << " has failed.";
186 } 186 }
187 } 187 }
188 } 188 }
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/shell/shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698