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

Unified Diff: components/mus/ws/window_tree_factory.cc

Issue 1764483003: Changes ownership of ClientConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « components/mus/ws/connection_manager_delegate.h ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_factory.cc
diff --git a/components/mus/ws/window_tree_factory.cc b/components/mus/ws/window_tree_factory.cc
index 8c5fecd3bcee619137bf9fc0d6548f5fc8a4e90b..05d48e748c672bd62af6197e4d4e31333b7df332 100644
--- a/components/mus/ws/window_tree_factory.cc
+++ b/components/mus/ws/window_tree_factory.cc
@@ -27,10 +27,11 @@ void WindowTreeFactory::CreateWindowTree(
scoped_ptr<ws::WindowTreeImpl> service(new ws::WindowTreeImpl(
connection_manager_, nullptr, mojom::WindowTree::kAccessPolicyDefault));
scoped_ptr<ws::DefaultClientConnection> client_connection(
- new ws::DefaultClientConnection(std::move(service), connection_manager_,
+ new ws::DefaultClientConnection(service.get(), connection_manager_,
std::move(tree_request),
std::move(client)));
- connection_manager_->AddConnection(std::move(client_connection), nullptr);
+ connection_manager_->AddTree(std::move(service), std::move(client_connection),
+ nullptr);
}
} // namespace ws
« no previous file with comments | « components/mus/ws/connection_manager_delegate.h ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698