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

Unified Diff: chrome/common/child_process_host.cc

Issue 173397: Allow Chromium Linux to be built with Breakpad. Enable Linux CHROME_HEADLESS ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 24255)
+++ chrome/common/child_process_host.cc (working copy)
@@ -145,18 +145,18 @@
// static
void ChildProcessHost::SetCrashReporterCommandLine(CommandLine* command_line) {
-#if defined(OS_POSIX)
- if (GoogleUpdateSettings::GetCollectStatsConsent()) {
-#if defined(OS_LINUX)
+#if defined(USE_LINUX_BREAKPAD)
+ const bool unattended = (getenv("CHROME_HEADLESS") != NULL);
+ if (unattended || GoogleUpdateSettings::GetCollectStatsConsent()) {
command_line->AppendSwitchWithValue(switches::kEnableCrashReporter,
ASCIIToWide(google_update::linux_guid +
"," +
base::GetLinuxDistro()));
Lei Zhang 2009/08/25 21:33:21 It turns out the call to GetLinuxDistro() caused V
-#else // !OS_LINUX
+ }
+#elif defined(OS_MACOSX)
+ if (GoogleUpdateSettings::GetCollectStatsConsent())
command_line->AppendSwitch(switches::kEnableCrashReporter);
-#endif // !OS_LINUX
- }
-#endif // OS_POSIX
+#endif // OS_MACOSX
}
bool ChildProcessHost::CreateChannel() {
« 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