Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6580)

Unified Diff: chrome/common/child_process_host.cc

Issue 173095: Allow Chromium Linux to be built with Breakpad. Enable Linux CHROME_HEADLESS ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move linux_breakpad==1 check into condition OS==Linux block Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 +
« no previous file with comments | « chrome/chrome.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698