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

Unified Diff: mojo/shell/child_process.cc

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « mojo/shell/child_process.h ('k') | mojo/shell/child_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/child_process.cc
diff --git a/mojo/shell/child_process.cc b/mojo/shell/child_process.cc
deleted file mode 100644
index 79b994025cf1debf7935eb635fb4ff6c260a9909..0000000000000000000000000000000000000000
--- a/mojo/shell/child_process.cc
+++ /dev/null
@@ -1,58 +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 "mojo/shell/child_process.h"
-
-#include "base/command_line.h"
-#include "base/logging.h"
-#include "base/strings/string_number_conversions.h"
-#include "mojo/edk/embedder/platform_channel_pair.h"
-#include "mojo/shell/app_child_process.h"
-#include "mojo/shell/switches.h"
-#include "mojo/shell/test_child_process.h"
-
-namespace mojo {
-namespace shell {
-
-ChildProcess::~ChildProcess() {
-}
-
-// static
-scoped_ptr<ChildProcess> ChildProcess::Create(
- const base::CommandLine& command_line) {
- if (!command_line.HasSwitch(switches::kChildProcessType))
- return scoped_ptr<ChildProcess>();
-
- int type_as_int;
- CHECK(base::StringToInt(command_line.GetSwitchValueASCII(
- switches::kChildProcessType), &type_as_int));
-
- scoped_ptr<ChildProcess> rv;
- switch (type_as_int) {
- case TYPE_TEST:
- rv.reset(new TestChildProcess());
- break;
- case TYPE_APP:
- rv.reset(new AppChildProcess());
- break;
- default:
- CHECK(false) << "Invalid child process type";
- break;
- }
-
- if (rv) {
- rv->platform_channel_ =
- embedder::PlatformChannelPair::PassClientHandleFromParentProcess(
- command_line);
- CHECK(rv->platform_channel_.is_valid());
- }
-
- return rv.Pass();
-}
-
-ChildProcess::ChildProcess() {
-}
-
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/child_process.h ('k') | mojo/shell/child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698