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

Side by Side Diff: mojo/shell/child_process.cc

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 8 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/shell/child_process.h"
6
7 #include "base/command_line.h"
8 #include "base/logging.h"
9 #include "mojo/edk/embedder/platform_channel_pair.h"
10 #include "mojo/shell/app_child_process.h"
11 #include "mojo/shell/switches.h"
12
13 namespace mojo {
14 namespace shell {
15
16 ChildProcess::~ChildProcess() {
17 }
18
19 // static
20 scoped_ptr<ChildProcess> ChildProcess::Create(
21 const base::CommandLine& command_line) {
22 if (!command_line.HasSwitch(switches::kChildProcess))
23 return scoped_ptr<ChildProcess>();
24
25 scoped_ptr<ChildProcess> rv(new AppChildProcess());
26 if (!rv)
27 return nullptr;
28
29 rv->platform_channel_ =
30 embedder::PlatformChannelPair::PassClientHandleFromParentProcess(
31 command_line);
32 CHECK(rv->platform_channel_.is_valid());
33 return rv;
34 }
35
36 ChildProcess::ChildProcess() {
37 }
38
39 } // namespace shell
40 } // namespace mojo
OLDNEW
« 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