Index: chrome/common/child_process_host.cc |
=================================================================== |
--- chrome/common/child_process_host.cc (revision 23911) |
+++ chrome/common/child_process_host.cc (working copy) |
@@ -146,7 +146,8 @@ |
// static |
void ChildProcessHost::SetCrashReporterCommandLine(CommandLine* command_line) { |
#if defined(OS_POSIX) |
- if (GoogleUpdateSettings::GetCollectStatsConsent()) { |
+ const bool unattended = (getenv("CHROME_HEADLESS") != NULL); |
+ if (unattended || GoogleUpdateSettings::GetCollectStatsConsent()) { |
#if defined(OS_LINUX) |
command_line->AppendSwitchWithValue(switches::kEnableCrashReporter, |
ASCIIToWide(google_update::linux_guid + |