diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 00:22:34 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 00:22:34 +0000 |
commit | d8c70060780d656689ac9bd10fc6d00211b75dbe (patch) | |
tree | ae192c0caf5d71aa2392948e1eed491571247c7e /content/browser/browser_child_process_host_impl.cc | |
parent | 2b554f45a15f5a22ec37808dd89a97ea516f5449 (diff) | |
download | chromium_src-d8c70060780d656689ac9bd10fc6d00211b75dbe.zip chromium_src-d8c70060780d656689ac9bd10fc6d00211b75dbe.tar.gz chromium_src-d8c70060780d656689ac9bd10fc6d00211b75dbe.tar.bz2 |
Cleanup various bits of BrowserThreadImpl and PluginServiceImpl.
Review URL: https://chromiumcodereview.appspot.com/13896004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_child_process_host_impl.cc')
-rw-r--r-- | content/browser/browser_child_process_host_impl.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc index 91e4665..6a2218f 100644 --- a/content/browser/browser_child_process_host_impl.cc +++ b/content/browser/browser_child_process_host_impl.cc @@ -300,7 +300,8 @@ bool BrowserChildProcessHostImpl::Send(IPC::Message* message) { } void BrowserChildProcessHostImpl::OnProcessLaunched() { - if (!child_process_->GetHandle()) { + base::ProcessHandle handle = child_process_->GetHandle(); + if (!handle) { delete delegate_; // Will delete us return; } @@ -312,12 +313,12 @@ void BrowserChildProcessHostImpl::OnProcessLaunched() { // IPC channel thereafter. DCHECK(!early_exit_watcher_.GetWatchedEvent()); early_exit_watcher_.StartWatching( - new base::WaitableEvent(child_process_->GetHandle()), + new base::WaitableEvent(handle), base::Bind(&BrowserChildProcessHostImpl::OnProcessExitedEarly, base::Unretained(this))); #endif - data_.handle = child_process_->GetHandle(); + data_.handle = handle; delegate_->OnProcessLaunched(); } |