| OLD | NEW |
| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #endif // OS_MACOSX | 51 #endif // OS_MACOSX |
| 52 | 52 |
| 53 #if BUILDFLAG(ENABLE_PLUGINS) | 53 #if BUILDFLAG(ENABLE_PLUGINS) |
| 54 #include "content/renderer/pepper/pepper_plugin_registry.h" | 54 #include "content/renderer/pepper/pepper_plugin_registry.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 #if BUILDFLAG(ENABLE_WEBRTC) | 57 #if BUILDFLAG(ENABLE_WEBRTC) |
| 58 #include "third_party/webrtc_overrides/init_webrtc.h" // nogncheck | 58 #include "third_party/webrtc_overrides/init_webrtc.h" // nogncheck |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 #if defined(USE_OZONE) | 61 #if defined(OS_LINUX) |
| 62 #include "ui/ozone/public/client_native_pixmap_factory.h" | 62 #include "ui/gfx/client_native_pixmap_factory.h" |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 namespace content { | 65 namespace content { |
| 66 namespace { | 66 namespace { |
| 67 // This function provides some ways to test crash and assertion handling | 67 // This function provides some ways to test crash and assertion handling |
| 68 // behavior of the renderer. | 68 // behavior of the renderer. |
| 69 static void HandleRendererErrorTestParameters( | 69 static void HandleRendererErrorTestParameters( |
| 70 const base::CommandLine& command_line) { | 70 const base::CommandLine& command_line) { |
| 71 if (command_line.HasSwitch(switches::kWaitForDebugger)) | 71 if (command_line.HasSwitch(switches::kWaitForDebugger)) |
| 72 base::debug::WaitForDebugger(60, true); | 72 base::debug::WaitForDebugger(60, true); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // ignore shutdown-only leaks. | 206 // ignore shutdown-only leaks. |
| 207 __lsan_do_leak_check(); | 207 __lsan_do_leak_check(); |
| 208 #endif | 208 #endif |
| 209 } | 209 } |
| 210 platform.PlatformUninitialize(); | 210 platform.PlatformUninitialize(); |
| 211 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0); | 211 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0); |
| 212 return 0; | 212 return 0; |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace content | 215 } // namespace content |
| OLD | NEW |