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

Unified Diff: components/mus/mus_app.cc

Issue 1750143002: Changes ownership of WindowTreeHostConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 10 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 | « no previous file | components/mus/ws/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/mus_app.cc
diff --git a/components/mus/mus_app.cc b/components/mus/mus_app.cc
index 3d9805157b42e0a6a35b98f6d527cf924cde20d1..60bda3392531de15042f301f5947a258004823ea 100644
--- a/components/mus/mus_app.cc
+++ b/components/mus/mus_app.cc
@@ -232,10 +232,11 @@ void MandolineUIServicesApp::CreateWindowTreeHost(
ws::WindowTreeHostImpl* host_impl = new ws::WindowTreeHostImpl(
connection_manager_.get(), connector_, gpu_state_, surfaces_state_);
- // WindowTreeHostConnection manages its own lifetime.
- host_impl->Init(new ws::WindowTreeHostConnectionImpl(
- std::move(host), make_scoped_ptr(host_impl), std::move(tree_client),
- connection_manager_.get()));
+ scoped_ptr<ws::WindowTreeHostConnectionImpl> host_connection(
+ new ws::WindowTreeHostConnectionImpl(std::move(host), host_impl,
+ std::move(tree_client),
+ connection_manager_.get()));
+ host_impl->Init(std::move(host_connection));
}
} // namespace mus
« no previous file with comments | « no previous file | components/mus/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698