app_child_process_host.cc revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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/app_child_process_host.h" 6 7namespace mojo { 8namespace shell { 9 10AppChildProcessHost::AppChildProcessHost(Context* context, 11 AppDelegate* app_delegate) 12 : ChildProcessHost(context, this, ChildProcess::TYPE_APP), 13 app_delegate_(app_delegate) { 14} 15 16AppChildProcessHost::~AppChildProcessHost() { 17} 18 19void AppChildProcessHost::DidStart(bool success) { 20 if (!success) { 21 app_delegate_->DidTerminate(); 22 return; 23 } 24 25 // TODO(vtl): What else? 26} 27 28} // namespace shell 29} // namespace mojo 30