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

Side by Side Diff: shell/child_process_host.cc

Issue 1131953006: Shell: switches cleanup. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: gn android fix Created 5 years, 7 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 | « shell/child_main.cc ('k') | shell/child_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "shell/child_process_host.h" 5 #include "shell/child_process_host.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/process/kill.h" 15 #include "base/process/kill.h"
16 #include "base/process/launch.h" 16 #include "base/process/launch.h"
17 #include "base/task_runner.h" 17 #include "base/task_runner.h"
18 #include "base/task_runner_util.h" 18 #include "base/task_runner_util.h"
19 #include "mojo/edk/embedder/embedder.h" 19 #include "mojo/edk/embedder/embedder.h"
20 #include "mojo/public/cpp/system/message_pipe.h" 20 #include "mojo/public/cpp/system/message_pipe.h"
21 #include "shell/child_switches.h"
21 #include "shell/context.h" 22 #include "shell/context.h"
22 #include "shell/switches.h"
23 #include "shell/task_runners.h" 23 #include "shell/task_runners.h"
24 24
25 namespace shell { 25 namespace shell {
26 26
27 ChildProcessHost::ChildProcessHost(Context* context) 27 ChildProcessHost::ChildProcessHost(Context* context)
28 : context_(context), channel_info_(nullptr) { 28 : context_(context), channel_info_(nullptr) {
29 } 29 }
30 30
31 ChildProcessHost::~ChildProcessHost() { 31 ChildProcessHost::~ChildProcessHost() {
32 DCHECK(!child_process_.IsValid()); 32 DCHECK(!child_process_.IsValid());
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 on_app_complete_.reset(); 129 on_app_complete_.reset();
130 on_app_complete.Run(result); 130 on_app_complete.Run(result);
131 } 131 }
132 } 132 }
133 133
134 void ChildProcessHost::OnConnectionError() { 134 void ChildProcessHost::OnConnectionError() {
135 AppCompleted(MOJO_RESULT_UNKNOWN); 135 AppCompleted(MOJO_RESULT_UNKNOWN);
136 } 136 }
137 137
138 } // namespace shell 138 } // namespace shell
OLDNEW
« no previous file with comments | « shell/child_main.cc ('k') | shell/child_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698