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

Unified Diff: services/shell/runner/common/client_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/runner/common/client_util.h ('k') | services/shell/runner/common/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/runner/common/client_util.cc
diff --git a/services/shell/runner/common/client_util.cc b/services/shell/runner/common/client_util.cc
deleted file mode 100644
index c2dd7bdd7b82eec3e57e0bb755d993d3221fe014..0000000000000000000000000000000000000000
--- a/services/shell/runner/common/client_util.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 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/runner/common/client_util.h"
-
-#include <string>
-
-#include "base/command_line.h"
-#include "mojo/edk/embedder/embedder.h"
-#include "services/shell/runner/common/switches.h"
-
-namespace shell {
-
-mojom::ServicePtr PassServiceRequestOnCommandLine(
- base::CommandLine* command_line, const std::string& child_token) {
- std::string token = mojo::edk::GenerateRandomToken();
- command_line->AppendSwitchASCII(switches::kPrimordialPipeToken, token);
-
- mojom::ServicePtr client;
- client.Bind(
- mojom::ServicePtrInfo(
- mojo::edk::CreateParentMessagePipe(token, child_token), 0));
- return client;
-}
-
-mojom::ServiceRequest GetServiceRequestFromCommandLine() {
- std::string token =
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kPrimordialPipeToken);
- mojom::ServiceRequest request;
- if (!token.empty())
- request.Bind(mojo::edk::CreateChildMessagePipe(token));
- return request;
-}
-
-bool ShellIsRemote() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kPrimordialPipeToken);
-}
-
-} // namespace shell
« no previous file with comments | « services/shell/runner/common/client_util.h ('k') | services/shell/runner/common/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698