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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 #endif | 142 #endif |
143 | 143 |
144 base::PlatformThread::SetName("CrRendererMain"); | 144 base::PlatformThread::SetName("CrRendererMain"); |
145 | 145 |
146 bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox); | 146 bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox); |
147 | 147 |
148 // Initialize histogram statistics gathering system. | 148 // Initialize histogram statistics gathering system. |
149 base::StatisticsRecorder::Initialize(); | 149 base::StatisticsRecorder::Initialize(); |
150 | 150 |
151 #if defined(OS_ANDROID) | 151 #if defined(OS_ANDROID) |
152 // If we have a pending chromium android linker histogram, record it. | 152 // If we have any pending LibraryLoader histograms, record them. |
153 base::android::RecordChromiumAndroidLinkerRendererHistogram(); | 153 base::android::RecordLibraryLoaderRendererHistograms(); |
154 #endif | 154 #endif |
155 | 155 |
156 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler( | 156 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler( |
157 scheduler::RendererScheduler::Create()); | 157 scheduler::RendererScheduler::Create()); |
158 | 158 |
159 // PlatformInitialize uses FieldTrials, so this must happen later. | 159 // PlatformInitialize uses FieldTrials, so this must happen later. |
160 platform.PlatformInitialize(); | 160 platform.PlatformInitialize(); |
161 | 161 |
162 #if defined(ENABLE_PLUGINS) | 162 #if defined(ENABLE_PLUGINS) |
163 // Load pepper plugins before engaging the sandbox. | 163 // Load pepper plugins before engaging the sandbox. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // ignore shutdown-only leaks. | 207 // ignore shutdown-only leaks. |
208 __lsan_do_leak_check(); | 208 __lsan_do_leak_check(); |
209 #endif | 209 #endif |
210 } | 210 } |
211 platform.PlatformUninitialize(); | 211 platform.PlatformUninitialize(); |
212 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0); | 212 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0); |
213 return 0; | 213 return 0; |
214 } | 214 } |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
OLD | NEW |