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

Unified Diff: services/ui/demo/mus_demo.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 | « services/ui/demo/mus_demo.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo.cc
diff --git a/services/ui/demo/mus_demo.cc b/services/ui/demo/mus_demo.cc
index 89b601e034eb74f060cbdab7a9c96437cd90e7cc..3710de8d30fced9718230035536fb8a988fd0608 100644
--- a/services/ui/demo/mus_demo.cc
+++ b/services/ui/demo/mus_demo.cc
@@ -65,7 +65,7 @@ MusDemo::~MusDemo() {
}
void MusDemo::OnStart(const shell::Identity& identity) {
- GpuService::Initialize(connector());
+ gpu_service_ = GpuService::Initialize(connector());
window_tree_client_ = new WindowTreeClient(this, this, nullptr);
window_tree_client_->ConnectAsWindowManager(connector());
}
« no previous file with comments | « services/ui/demo/mus_demo.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698