summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authornsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 18:48:06 +0000
committernsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 18:48:06 +0000
commited98e38aa478f2d8b15e33013add3309171f821d (patch)
treef61766fd3249c15627109139b47f0c8aabc9e33e /chrome/app
parentbafb959be73508825dabe5b9a022c97ad4dd4af2 (diff)
downloadchromium_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.cc5
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;
}