OLD | NEW |
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 "app/l10n_util.h" |
5 #include "app/resource_bundle.h" | 6 #include "app/resource_bundle.h" |
6 #include "base/command_line.h" | 7 #include "base/command_line.h" |
7 #include "base/histogram.h" | 8 #include "base/histogram.h" |
8 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
9 #include "base/path_service.h" | 10 #include "base/path_service.h" |
10 #include "base/platform_thread.h" | 11 #include "base/platform_thread.h" |
11 #include "base/process_util.h" | 12 #include "base/process_util.h" |
12 #include "base/scoped_nsautorelease_pool.h" | 13 #include "base/scoped_nsautorelease_pool.h" |
13 #include "base/stats_counters.h" | 14 #include "base/stats_counters.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "base/system_monitor.h" | 16 #include "base/system_monitor.h" |
16 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/common/chrome_counters.h" | 18 #include "chrome/common/chrome_counters.h" |
18 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/l10n_util.h" | |
20 #include "chrome/common/logging_chrome.h" | 20 #include "chrome/common/logging_chrome.h" |
21 #include "chrome/common/main_function_params.h" | 21 #include "chrome/common/main_function_params.h" |
22 #include "chrome/renderer/renderer_main_platform_delegate.h" | 22 #include "chrome/renderer/renderer_main_platform_delegate.h" |
23 #include "chrome/renderer/render_process.h" | 23 #include "chrome/renderer/render_process.h" |
24 #include "grit/chromium_strings.h" | 24 #include "grit/chromium_strings.h" |
25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
26 | 26 |
27 // This function provides some ways to test crash and assertion handling | 27 // This function provides some ways to test crash and assertion handling |
28 // behavior of the renderer. | 28 // behavior of the renderer. |
29 static void HandleRendererErrorTestParameters(const CommandLine& command_line) { | 29 static void HandleRendererErrorTestParameters(const CommandLine& command_line) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 if (run_loop) { | 108 if (run_loop) { |
109 // Load the accelerator table from the browser executable and tell the | 109 // Load the accelerator table from the browser executable and tell the |
110 // message loop to use it when translating messages. | 110 // message loop to use it when translating messages. |
111 if (pool) pool->Recycle(); | 111 if (pool) pool->Recycle(); |
112 MessageLoop::current()->Run(); | 112 MessageLoop::current()->Run(); |
113 } | 113 } |
114 } | 114 } |
115 platform.PlatformUninitialize(); | 115 platform.PlatformUninitialize(); |
116 return 0; | 116 return 0; |
117 } | 117 } |
OLD | NEW |