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

Side by Side Diff: chrome/renderer/renderer_main.cc

Issue 18460: * Revert "POSIX: Get render_process_host to build." (Closed)
Patch Set: Created 11 years, 11 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
« no previous file with comments | « chrome/renderer/render_process.h ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/platform_thread.h" 8 #include "base/platform_thread.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/system_monitor.h" 10 #include "base/system_monitor.h"
11 #include "build/build_config.h"
12 #include "chrome/common/chrome_constants.h" 11 #include "chrome/common/chrome_constants.h"
13 #include "chrome/common/chrome_counters.h" 12 #include "chrome/common/chrome_counters.h"
14 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/l10n_util.h" 14 #include "chrome/common/l10n_util.h"
16 #include "chrome/common/logging_chrome.h" 15 #include "chrome/common/logging_chrome.h"
17 #include "chrome/common/main_function_params.h" 16 #include "chrome/common/main_function_params.h"
18 #include "chrome/common/resource_bundle.h" 17 #include "chrome/common/resource_bundle.h"
19 #include "chrome/renderer/render_process.h" 18 #include "chrome/renderer/render_process.h"
20 #include "chrome/test/injection_test_dll.h" 19 #include "chrome/test/injection_test_dll.h"
21 #include "sandbox/src/sandbox.h" 20 #include "sandbox/src/sandbox.h"
22 21
23 #include "chromium_strings.h" 22 #include "chromium_strings.h"
24 #include "generated_resources.h" 23 #include "generated_resources.h"
25 24
26 #if defined(OS_WIN)
27 // Needed for CoInitialize
28 #include "chrome/common/win_util.h"
29 #endif
30
31 // This function provides some ways to test crash and assertion handling 25 // This function provides some ways to test crash and assertion handling
32 // behavior of the renderer. 26 // behavior of the renderer.
33 static void HandleRendererErrorTestParameters(const CommandLine& command_line) { 27 static void HandleRendererErrorTestParameters(const CommandLine& command_line) {
34 // This parameter causes an assertion. 28 // This parameter causes an assertion.
35 if (command_line.HasSwitch(switches::kRendererAssertTest)) { 29 if (command_line.HasSwitch(switches::kRendererAssertTest)) {
36 DCHECK(false); 30 DCHECK(false);
37 } 31 }
38 32
39 // This parameter causes a null pointer crash (crash reporter trigger). 33 // This parameter causes a null pointer crash (crash reporter trigger).
40 if (command_line.HasSwitch(switches::kRendererCrashTest)) { 34 if (command_line.HasSwitch(switches::kRendererCrashTest)) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 MessageLoop::current()->Run(); 116 MessageLoop::current()->Run();
123 } 117 }
124 118
125 RenderProcess::GlobalCleanup(); 119 RenderProcess::GlobalCleanup();
126 } 120 }
127 121
128 CoUninitialize(); 122 CoUninitialize();
129 return 0; 123 return 0;
130 } 124 }
131 125
OLDNEW
« no previous file with comments | « chrome/renderer/render_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698