diff options
author | nsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-11 18:48:06 +0000 |
---|---|---|
committer | nsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-11 18:48:06 +0000 |
commit | ed98e38aa478f2d8b15e33013add3309171f821d (patch) | |
tree | f61766fd3249c15627109139b47f0c8aabc9e33e /chrome/app | |
parent | bafb959be73508825dabe5b9a022c97ad4dd4af2 (diff) | |
download | chromium_src-ed98e38aa478f2d8b15e33013add3309171f821d.zip chromium_src-ed98e38aa478f2d8b15e33013add3309171f821d.tar.gz chromium_src-ed98e38aa478f2d8b15e33013add3309171f821d.tar.bz2 |
We should not initialize the crash callback for non-browser processes since
it's used only to display the "Whoa, chrome has crashed".
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/breakpad.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/app/breakpad.cc b/chrome/app/breakpad.cc index 83653d3..dd0aebf 100644 --- a/chrome/app/breakpad.cc +++ b/chrome/app/breakpad.cc @@ -210,8 +210,9 @@ unsigned __stdcall InitCrashReporterThread(void* param) { // user allows it first. if (!GoogleUpdateSettings::GetCollectStatsConsent()) { // The user did not allow Google Update to send crashes, we need to use - // our default crash handler instead. - InitDefaultCrashCallback(); + // our default crash handler instead, but only for the browser process. + if (callback) + InitDefaultCrashCallback(); return 0; } |