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

Unified Diff: components/mus/ws/window_tree_host_impl.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/window_tree_factory.cc ('k') | components/mus/ws/window_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_host_impl.cc
diff --git a/components/mus/ws/window_tree_host_impl.cc b/components/mus/ws/window_tree_host_impl.cc
index dcd3ae1811213759f1c13e70a5f5984dd3041d9a..90c90d72b6a332e36cf339ffcfdc44c804e070ef 100644
--- a/components/mus/ws/window_tree_host_impl.cc
+++ b/components/mus/ws/window_tree_host_impl.cc
@@ -7,7 +7,6 @@
#include "base/debug/debugger.h"
#include "base/strings/utf_string_conversions.h"
#include "components/mus/common/types.h"
-// #include "components/mus/public/interfaces/input_event_constants.mojom.h"
#include "components/mus/ws/client_connection.h"
#include "components/mus/ws/connection_manager.h"
#include "components/mus/ws/connection_manager_delegate.h"
@@ -375,18 +374,13 @@ void WindowTreeHostImpl::DispatchInputEventToWindowImpl(
void WindowTreeHostImpl::CreateWindowManagerStatesFromRegistry() {
std::vector<WindowManagerFactoryService*> services =
connection_manager_->window_manager_factory_registry()->GetServices();
- mojom::DisplayPtr display = connection_manager_->DisplayForHost(this);
for (WindowManagerFactoryService* service : services) {
scoped_ptr<WindowManagerState> wms_ptr(
new WindowManagerState(this, service->user_id()));
WindowManagerState* wms = wms_ptr.get();
window_manager_state_map_[service->user_id()] = std::move(wms_ptr);
- ClientConnection* client_connection =
- connection_manager_->delegate()->CreateClientConnectionForWindowManager(
- this, wms->root(), *display, service->user_id(),
- service->window_manager_factory());
- client_connection->service()->ConfigureWindowManager();
- wms->tree_ = client_connection->service();
+ wms->tree_ = connection_manager_->CreateTreeForWindowManager(
+ this, service->window_manager_factory(), wms->root());
}
}
« no previous file with comments | « components/mus/ws/window_tree_factory.cc ('k') | components/mus/ws/window_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698