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

Unified Diff: components/mus/public/cpp/lib/window_tree_host_factory.cc

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 years, 7 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/public/cpp/lib/window_tree_delegate.cc ('k') | components/mus/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window_tree_host_factory.cc
diff --git a/components/mus/public/cpp/lib/window_tree_host_factory.cc b/components/mus/public/cpp/lib/window_tree_host_factory.cc
index 7e93468e8bb679d83359516c489ee1c881e285c2..0d55bae13fe2cd0e8b79ea875ab59c33f380337b 100644
--- a/components/mus/public/cpp/lib/window_tree_host_factory.cc
+++ b/components/mus/public/cpp/lib/window_tree_host_factory.cc
@@ -4,26 +4,24 @@
#include "components/mus/public/cpp/window_tree_host_factory.h"
-#include "components/mus/public/cpp/window_tree_connection.h"
-#include "components/mus/public/cpp/window_tree_delegate.h"
+#include "components/mus/public/cpp/window_tree_client.h"
+#include "components/mus/public/cpp/window_tree_client_delegate.h"
#include "services/shell/public/cpp/connector.h"
namespace mus {
void CreateWindowTreeHost(mojom::WindowTreeHostFactory* factory,
- WindowTreeDelegate* delegate,
+ WindowTreeClientDelegate* delegate,
mojom::WindowTreeHostPtr* host,
WindowManagerDelegate* window_manager_delegate) {
mojom::WindowTreeClientPtr tree_client;
- WindowTreeConnection::CreateForWindowManager(
- delegate, GetProxy(&tree_client),
- WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED,
- window_manager_delegate);
+ new WindowTreeClient(delegate, window_manager_delegate,
+ GetProxy(&tree_client));
factory->CreateWindowTreeHost(GetProxy(host), std::move(tree_client));
}
void CreateWindowTreeHost(shell::Connector* connector,
- WindowTreeDelegate* delegate,
+ WindowTreeClientDelegate* delegate,
mojom::WindowTreeHostPtr* host,
WindowManagerDelegate* window_manager_delegate) {
mojom::WindowTreeHostFactoryPtr factory;
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_delegate.cc ('k') | components/mus/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698