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

Unified Diff: services/shell/connect_util.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « services/shell/connect_util.h ('k') | services/shell/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/connect_util.cc
diff --git a/services/shell/connect_util.cc b/services/shell/connect_util.cc
deleted file mode 100644
index 0bf502e6fba4717f8d3988a2f86539c2feda6120..0000000000000000000000000000000000000000
--- a/services/shell/connect_util.cc
+++ /dev/null
@@ -1,31 +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/shell/connect_util.h"
-
-#include <memory>
-#include <utility>
-
-#include "services/shell/connect_params.h"
-#include "services/shell/service_manager.h"
-
-namespace shell {
-
-mojo::ScopedMessagePipeHandle ConnectToInterfaceByName(
- ServiceManager* service_manager,
- const Identity& source,
- const Identity& target,
- const std::string& interface_name) {
- mojom::InterfaceProviderPtr remote_interfaces;
- std::unique_ptr<ConnectParams> params(new ConnectParams);
- params->set_source(source);
- params->set_target(target);
- params->set_remote_interfaces(mojo::GetProxy(&remote_interfaces));
- service_manager->Connect(std::move(params));
- mojo::MessagePipe pipe;
- remote_interfaces->GetInterface(interface_name, std::move(pipe.handle1));
- return std::move(pipe.handle0);
-}
-
-} // namespace shell
« no previous file with comments | « services/shell/connect_util.h ('k') | services/shell/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698