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 |
deleted file mode 100644 |
index 0d55bae13fe2cd0e8b79ea875ab59c33f380337b..0000000000000000000000000000000000000000 |
--- a/components/mus/public/cpp/lib/window_tree_host_factory.cc |
+++ /dev/null |
@@ -1,32 +0,0 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "components/mus/public/cpp/window_tree_host_factory.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, |
- WindowTreeClientDelegate* delegate, |
- mojom::WindowTreeHostPtr* host, |
- WindowManagerDelegate* window_manager_delegate) { |
- mojom::WindowTreeClientPtr tree_client; |
- new WindowTreeClient(delegate, window_manager_delegate, |
- GetProxy(&tree_client)); |
- factory->CreateWindowTreeHost(GetProxy(host), std::move(tree_client)); |
-} |
- |
-void CreateWindowTreeHost(shell::Connector* connector, |
- WindowTreeClientDelegate* delegate, |
- mojom::WindowTreeHostPtr* host, |
- WindowManagerDelegate* window_manager_delegate) { |
- mojom::WindowTreeHostFactoryPtr factory; |
- connector->ConnectToInterface("mojo:mus", &factory); |
- CreateWindowTreeHost(factory.get(), delegate, host, window_manager_delegate); |
-} |
- |
-} // namespace mus |