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

Unified Diff: ash/mus/window_manager_application.cc

Issue 2194003002: services/ui: Have an explicit lifetime/ownership of ui::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/window_manager_application.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_application.cc
diff --git a/ash/mus/window_manager_application.cc b/ash/mus/window_manager_application.cc
index 8e6aec96f92000c824e359a3353ae60c0a551ae3..66aab81b89b9b20ced54e5a5e44b1950bc204e61 100644
--- a/ash/mus/window_manager_application.cc
+++ b/ash/mus/window_manager_application.cc
@@ -78,7 +78,7 @@ WindowManagerApplication::~WindowManagerApplication() {
// Destroy the WindowManager while still valid. This way we ensure
// OnWillDestroyRootWindowController() is called (if it hasn't been already).
window_manager_.reset();
-
+ gpu_service_.reset();
ShutdownComponents();
}
@@ -96,7 +96,7 @@ void WindowManagerApplication::InitWindowManager(
}
void WindowManagerApplication::OnStart(const shell::Identity& identity) {
- ui::GpuService::Initialize(connector());
+ gpu_service_ = ui::GpuService::Initialize(connector());
window_manager_.reset(new WindowManager(connector()));
aura_init_.reset(new views::AuraInit(connector(), "ash_mus_resources.pak"));
« no previous file with comments | « ash/mus/window_manager_application.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698