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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2591863004: mus: aura::Env should be destroyed last in the mus client. (Closed)
Patch Set: . Created 3 years, 12 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
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 "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 1198
1199 if (RenderProcessHost::run_renderer_in_process()) 1199 if (RenderProcessHost::run_renderer_in_process())
1200 RenderProcessHostImpl::ShutDownInProcessRenderer(); 1200 RenderProcessHostImpl::ShutDownInProcessRenderer();
1201 1201
1202 if (parts_) { 1202 if (parts_) {
1203 TRACE_EVENT0("shutdown", 1203 TRACE_EVENT0("shutdown",
1204 "BrowserMainLoop::Subsystem:PostMainMessageLoopRun"); 1204 "BrowserMainLoop::Subsystem:PostMainMessageLoopRun");
1205 parts_->PostMainMessageLoopRun(); 1205 parts_->PostMainMessageLoopRun();
1206 } 1206 }
1207 1207
1208 #if defined(USE_AURA)
1209 env_.reset();
1210 #endif
1211
1212 system_stats_monitor_.reset(); 1208 system_stats_monitor_.reset();
1213 1209
1214 // Destroying the GpuProcessHostUIShims on the UI thread posts a task to 1210 // Destroying the GpuProcessHostUIShims on the UI thread posts a task to
1215 // delete related objects on the GPU thread. This must be done before 1211 // delete related objects on the GPU thread. This must be done before
1216 // stopping the GPU thread. The GPU thread will close IPC channels to renderer 1212 // stopping the GPU thread. The GPU thread will close IPC channels to renderer
1217 // processes so this has to happen before stopping the IO thread. 1213 // processes so this has to happen before stopping the IO thread.
1218 { 1214 {
1219 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:GPUProcessHostShim"); 1215 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:GPUProcessHostShim");
1220 GpuProcessHostUIShim::DestroyAll(); 1216 GpuProcessHostUIShim::DestroyAll();
1221 } 1217 }
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 if (!audio_manager_) { 1788 if (!audio_manager_) {
1793 audio_thread_ = base::MakeUnique<AudioManagerThread>(); 1789 audio_thread_ = base::MakeUnique<AudioManagerThread>();
1794 audio_manager_ = media::AudioManager::Create( 1790 audio_manager_ = media::AudioManager::Create(
1795 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), 1791 audio_thread_->task_runner(), audio_thread_->worker_task_runner(),
1796 MediaInternals::GetInstance()); 1792 MediaInternals::GetInstance());
1797 } 1793 }
1798 CHECK(audio_manager_); 1794 CHECK(audio_manager_);
1799 } 1795 }
1800 1796
1801 } // namespace content 1797 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc ('k') | ui/aura/mus/focus_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698