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

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

Issue 1746263003: Clean up MojoShellConnection in render processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2664
Patch Set: Created 4 years, 9 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 | « no previous file | mojo/shell/runner/host/child_process_host.cc » ('j') | 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) 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
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
OLDNEW
« no previous file with comments | « no previous file | mojo/shell/runner/host/child_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698