diff options
author | petkov@chromium.org <petkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-02 14:37:15 +0000 |
---|---|---|
committer | petkov@chromium.org <petkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-02 14:37:15 +0000 |
commit | 3838ca1b5303b0228514d61990d1ae3dab96704a (patch) | |
tree | 4e687e14855240570b78471835bdb18810240512 /content/browser/browser_child_process_host.h | |
parent | 6a0dc7af6e4f2e1f5e56bb9646057e3c34eb2d31 (diff) | |
download | chromium_src-3838ca1b5303b0228514d61990d1ae3dab96704a.zip chromium_src-3838ca1b5303b0228514d61990d1ae3dab96704a.tar.gz chromium_src-3838ca1b5303b0228514d61990d1ae3dab96704a.tar.bz2 |
On non-Windows platforms, wait for some time for an exit code.
This increases the chances of reporting process crashes to UMA. Any unreported
disconnects will still be counted in the ChildProcess.Disconnected histogram
as well as a new ChildProcess.DisconnectedAlive histogram.
BUG=chromium-os:21753,chromium:96059
TEST=git try, tested kill -SEGV ppapi and gpu processes, inspected
about:histograms
Change-Id: I3444929082661d2cc500e3a9d4be6f6100c16957
Review URL: http://codereview.chromium.org/8354036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_child_process_host.h')
-rw-r--r-- | content/browser/browser_child_process_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/browser_child_process_host.h b/content/browser/browser_child_process_host.h index d9be9c2..092bf0d 100644 --- a/content/browser/browser_child_process_host.h +++ b/content/browser/browser_child_process_host.h @@ -8,6 +8,7 @@ #include <list> +#include "base/memory/weak_ptr.h" #include "base/synchronization/waitable_event_watcher.h" #include "content/browser/child_process_launcher.h" #include "content/common/child_process_host.h" @@ -126,6 +127,8 @@ class CONTENT_EXPORT BrowserChildProcessHost : scoped_ptr<ChildProcessLauncher> child_process_; #if defined(OS_WIN) base::WaitableEventWatcher child_watcher_; +#else + base::WeakPtrFactory<BrowserChildProcessHost> task_factory_; #endif bool disconnect_was_alive_; }; |