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

Unified Diff: services/ui/public/cpp/window_tree_host_factory.cc

Issue 2651593002: mus: Remove the old client lib. (Closed)
Patch Set: restore test Created 3 years, 11 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 | « services/ui/public/cpp/window_tree_host_factory.h ('k') | services/ui/ws/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/window_tree_host_factory.cc
diff --git a/services/ui/public/cpp/window_tree_host_factory.cc b/services/ui/public/cpp/window_tree_host_factory.cc
deleted file mode 100644
index c6ae6ffd043cd957b62290e2c97ed614f0440b7f..0000000000000000000000000000000000000000
--- a/services/ui/public/cpp/window_tree_host_factory.cc
+++ /dev/null
@@ -1,39 +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 "services/ui/public/cpp/window_tree_host_factory.h"
-
-#include "base/memory/ptr_util.h"
-#include "services/service_manager/public/cpp/connector.h"
-#include "services/ui/public/cpp/window_tree_client.h"
-#include "services/ui/public/cpp/window_tree_client_delegate.h"
-#include "services/ui/public/interfaces/constants.mojom.h"
-
-namespace ui {
-
-std::unique_ptr<WindowTreeClient> CreateWindowTreeHost(
- mojom::WindowTreeHostFactory* factory,
- WindowTreeClientDelegate* delegate,
- mojom::WindowTreeHostPtr* host,
- WindowManagerDelegate* window_manager_delegate) {
- mojom::WindowTreeClientPtr tree_client;
- std::unique_ptr<WindowTreeClient> window_tree_client =
- base::MakeUnique<WindowTreeClient>(delegate, window_manager_delegate,
- MakeRequest(&tree_client));
- factory->CreateWindowTreeHost(MakeRequest(host), std::move(tree_client));
- return window_tree_client;
-}
-
-std::unique_ptr<WindowTreeClient> CreateWindowTreeHost(
- service_manager::Connector* connector,
- WindowTreeClientDelegate* delegate,
- mojom::WindowTreeHostPtr* host,
- WindowManagerDelegate* window_manager_delegate) {
- mojom::WindowTreeHostFactoryPtr factory;
- connector->BindInterface(ui::mojom::kServiceName, &factory);
- return CreateWindowTreeHost(factory.get(), delegate, host,
- window_manager_delegate);
-}
-
-} // namespace ui
« no previous file with comments | « services/ui/public/cpp/window_tree_host_factory.h ('k') | services/ui/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698