| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 if (run_loop) { | 213 if (run_loop) { |
| 214 #if defined(OS_MACOSX) | 214 #if defined(OS_MACOSX) |
| 215 if (pool) | 215 if (pool) |
| 216 pool->Recycle(); | 216 pool->Recycle(); |
| 217 #endif | 217 #endif |
| 218 TRACE_EVENT_ASYNC_BEGIN0("toplevel", "RendererMain.START_MSG_LOOP", 0); | 218 TRACE_EVENT_ASYNC_BEGIN0("toplevel", "RendererMain.START_MSG_LOOP", 0); |
| 219 base::MessageLoop::current()->Run(); | 219 base::MessageLoop::current()->Run(); |
| 220 TRACE_EVENT_ASYNC_END0("toplevel", "RendererMain.START_MSG_LOOP", 0); | 220 TRACE_EVENT_ASYNC_END0("toplevel", "RendererMain.START_MSG_LOOP", 0); |
| 221 } | 221 } |
| 222 |
| 223 MojoShellConnectionImpl::Destroy(); |
| 224 |
| 222 #if defined(LEAK_SANITIZER) | 225 #if defined(LEAK_SANITIZER) |
| 223 // Run leak detection before RenderProcessImpl goes out of scope. This helps | 226 // Run leak detection before RenderProcessImpl goes out of scope. This helps |
| 224 // ignore shutdown-only leaks. | 227 // ignore shutdown-only leaks. |
| 225 __lsan_do_leak_check(); | 228 __lsan_do_leak_check(); |
| 226 #endif | 229 #endif |
| 227 } | 230 } |
| 228 platform.PlatformUninitialize(); | 231 platform.PlatformUninitialize(); |
| 229 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0); | 232 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0); |
| 230 return 0; | 233 return 0; |
| 231 } | 234 } |
| 232 | 235 |
| 233 } // namespace content | 236 } // namespace content |
| OLD | NEW |