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 |