diff options
Diffstat (limited to 'chrome/browser/nacl_host/nacl_broker_host.cc')
-rw-r--r-- | chrome/browser/nacl_host/nacl_broker_host.cc | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/chrome/browser/nacl_host/nacl_broker_host.cc b/chrome/browser/nacl_host/nacl_broker_host.cc index ec8aafd..92ed181 100644 --- a/chrome/browser/nacl_host/nacl_broker_host.cc +++ b/chrome/browser/nacl_host/nacl_broker_host.cc @@ -16,8 +16,7 @@ NaClBrokerHost::NaClBrokerHost( ResourceDispatcherHost* resource_dispatcher_host) - : ChildProcessHost(NACL_BROKER_PROCESS, resource_dispatcher_host), - stopping_(false) { + : ChildProcessHost(NACL_BROKER_PROCESS, resource_dispatcher_host) { } NaClBrokerHost::~NaClBrokerHost() { @@ -73,18 +72,3 @@ void NaClBrokerHost::OnLoaderLaunched(const std::wstring& loader_channel_id, base::ProcessHandle handle) { NaClBrokerService::GetInstance()->OnLoaderLaunched(loader_channel_id, handle); } - -void NaClBrokerHost::StopBroker() { - stopping_ = true; - Send(new NaClProcessMsg_StopBroker()); -} - -void NaClBrokerHost::OnChildDied() { - if (!stopping_) { - // If the broker stops unexpectedly (and not when asked by the broker - // service), we need to notify the broker service. In any other case - // the broker service may have a new broker host pointer by this time. - NaClBrokerService::GetInstance()->OnBrokerDied(); - } - ChildProcessHost::OnChildDied(); -} |