summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad.cc
diff options
context:
space:
mode:
authornsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 23:26:34 +0000
committernsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 23:26:34 +0000
commit41c2cd46aecd34eb258ed92b242ee86c333f06a8 (patch)
treeee69cf96407cfc70cff281049108a6d4c1cf5fcf /chrome/app/breakpad.cc
parent1edd2121b8df80f68107bf8dbdf0816865fa969f (diff)
downloadchromium_src-41c2cd46aecd34eb258ed92b242ee86c333f06a8.zip
chromium_src-41c2cd46aecd34eb258ed92b242ee86c333f06a8.tar.gz
chromium_src-41c2cd46aecd34eb258ed92b242ee86c333f06a8.tar.bz2
Always enabled the crash reporting when crash_service.exe is used instead of Google Update.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad.cc')
-rw-r--r--chrome/app/breakpad.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/app/breakpad.cc b/chrome/app/breakpad.cc
index 26bafd7..83653d3 100644
--- a/chrome/app/breakpad.cc
+++ b/chrome/app/breakpad.cc
@@ -41,6 +41,7 @@
#include "base/string_util.h"
#include "base/win_util.h"
#include "chrome/app/google_update_client.h"
+#include "chrome/app/google_update_settings.h"
#include "breakpad/src/client/windows/handler/exception_handler.h"
namespace {
@@ -205,6 +206,15 @@ unsigned __stdcall InitCrashReporterThread(void* param) {
if (use_crash_service) {
pipe_name = kChromePipeName;
} else {
+ // We want to use the Google Update crash reporting. We need to check if the
+ // 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();
+ return 0;
+ }
+
// Build the pipe name.
std::wstring user_sid;
if (!win_util::GetUserSidString(&user_sid)) {