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

Unified Diff: mojo/services/view_manager/public/cpp/lib/view_manager_client_factory.cc

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 years, 2 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
Index: mojo/services/view_manager/public/cpp/lib/view_manager_client_factory.cc
diff --git a/mojo/services/view_manager/public/cpp/lib/view_manager_client_factory.cc b/mojo/services/view_manager/public/cpp/lib/view_manager_client_factory.cc
deleted file mode 100644
index bb39fc9d55a95bbeb8f9adb2f46482e8d79afcb0..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/public/cpp/lib/view_manager_client_factory.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2014 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 "view_manager/public/cpp/view_manager_client_factory.h"
-
-#include "mojo/public/interfaces/application/shell.mojom.h"
-#include "view_manager/public/cpp/lib/view_manager_client_impl.h"
-
-namespace mojo {
-
-ViewManagerClientFactory::ViewManagerClientFactory(
- Shell* shell,
- ViewManagerDelegate* delegate)
- : shell_(shell), delegate_(delegate) {
-}
-
-ViewManagerClientFactory::~ViewManagerClientFactory() {
-}
-
-// static
-ViewManagerClient* ViewManagerClientFactory::WeakBindViewManagerToPipe(
- InterfaceRequest<ViewManagerClient> request,
- ViewManagerServicePtr view_manager_service,
- Shell* shell,
- ViewManagerDelegate* delegate) {
- const bool delete_on_error = false;
- auto client = new ViewManagerClientImpl(delegate, shell, request.Pass(),
- delete_on_error);
- client->SetViewManagerService(view_manager_service.Pass());
- return client;
-}
-
-// InterfaceFactory<ViewManagerClient> implementation.
-void ViewManagerClientFactory::Create(
- ApplicationConnection* connection,
- InterfaceRequest<ViewManagerClient> request) {
- const bool delete_on_error = true;
- new ViewManagerClientImpl(delegate_, shell_, request.Pass(), delete_on_error);
-}
-
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698