Index: components/view_manager/public/cpp/lib/view_tree_host_factory.cc |
diff --git a/components/view_manager/public/cpp/lib/view_tree_host_factory.cc b/components/view_manager/public/cpp/lib/view_tree_host_factory.cc |
deleted file mode 100644 |
index 1e591a00579c009d71b200280ecd27e3c036e18a..0000000000000000000000000000000000000000 |
--- a/components/view_manager/public/cpp/lib/view_tree_host_factory.cc |
+++ /dev/null |
@@ -1,34 +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/view_manager/public/cpp/view_tree_host_factory.h" |
- |
-#include "components/view_manager/public/cpp/view_tree_connection.h" |
-#include "components/view_manager/public/cpp/view_tree_delegate.h" |
-#include "mojo/application/public/cpp/application_impl.h" |
- |
-namespace mojo { |
- |
-void CreateViewTreeHost(ViewTreeHostFactory* factory, |
- ViewTreeHostClientPtr host_client, |
- ViewTreeDelegate* delegate, |
- ViewTreeHostPtr* host) { |
- ViewTreeClientPtr tree_client; |
- ViewTreeConnection::Create(delegate, GetProxy(&tree_client)); |
- factory->CreateViewTreeHost(GetProxy(host), host_client.Pass(), |
- tree_client.Pass()); |
-} |
- |
-void CreateSingleViewTreeHost(ApplicationImpl* app, |
- ViewTreeDelegate* delegate, |
- ViewTreeHostPtr* host) { |
- mojo::ViewTreeHostFactoryPtr factory; |
- mojo::URLRequestPtr request(mojo::URLRequest::New()); |
- request->url = "mojo:view_manager"; |
- app->ConnectToService(request.Pass(), &factory); |
- CreateViewTreeHost(factory.get(), mojo::ViewTreeHostClientPtr(), delegate, |
- host); |
-} |
- |
-} // namespace mojo |