summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 07:58:19 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 07:58:19 +0000
commit1b084b5e0489af11d34e24286712668a5e61edfd (patch)
tree4473665981fd335fc0adde36f898ce4623aa1dcf /chrome/app
parent91e9253e23325eaee915ab6fcd8ecae718b9108b (diff)
downloadchromium_src-1b084b5e0489af11d34e24286712668a5e61edfd.zip
chromium_src-1b084b5e0489af11d34e24286712668a5e61edfd.tar.gz
chromium_src-1b084b5e0489af11d34e24286712668a5e61edfd.tar.bz2
[linux] Hook up crash reporter initialization with configuration management.
BUG=49662 TEST=Enable/Disable metrics reporting through policy and check whether the crash reporter respects that. Review URL: http://codereview.chromium.org/3084008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54716 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/breakpad_linux.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc
index c3a4652..22f69f9 100644
--- a/chrome/app/breakpad_linux.cc
+++ b/chrome/app/breakpad_linux.cc
@@ -739,11 +739,8 @@ void InitCrashReporter() {
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
const std::string process_type =
parsed_command_line.GetSwitchValueASCII(switches::kProcessType);
- const bool unattended = (getenv(env_vars::kHeadless) != NULL);
if (process_type.empty()) {
- if (!(unattended || GoogleUpdateSettings::GetCollectStatsConsent()))
- return;
- EnableCrashDumping(unattended);
+ EnableCrashDumping(getenv(env_vars::kHeadless) != NULL);
} else if (process_type == switches::kRendererProcess ||
process_type == switches::kPluginProcess ||
process_type == switches::kZygoteProcess) {