summaryrefslogtreecommitdiffstats
path: root/chrome/browser/child_process_host.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 18:32:10 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 18:32:10 +0000
commit99ca9a111b9970a9f36f5251acceb9ee0b1124e1 (patch)
tree6941ec3d2990db13a0da730616097e1417ad2069 /chrome/browser/child_process_host.cc
parent6d8ffc9f70711222db4aaaca570be0574e88de42 (diff)
downloadchromium_src-99ca9a111b9970a9f36f5251acceb9ee0b1124e1.zip
chromium_src-99ca9a111b9970a9f36f5251acceb9ee0b1124e1.tar.gz
chromium_src-99ca9a111b9970a9f36f5251acceb9ee0b1124e1.tar.bz2
Use env_vars::kHeadless instead of hard coded strings.
BUG=none TEST=none Review URL: http://codereview.chromium.org/876002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41451 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/child_process_host.cc')
-rw-r--r--chrome/browser/child_process_host.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/child_process_host.cc b/chrome/browser/child_process_host.cc
index 3aea690..d27ebeb 100644
--- a/chrome/browser/child_process_host.cc
+++ b/chrome/browser/child_process_host.cc
@@ -18,6 +18,7 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/env_vars.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/notification_type.h"
#include "chrome/common/plugin_messages.h"
@@ -114,7 +115,7 @@ FilePath ChildProcessHost::GetChildPath(bool allow_self) {
// static
void ChildProcessHost::SetCrashReporterCommandLine(CommandLine* command_line) {
#if defined(USE_LINUX_BREAKPAD)
- const bool unattended = (getenv("CHROME_HEADLESS") != NULL);
+ const bool unattended = (getenv(WideToASCII(env_vars::kHeadless)) != NULL);
if (unattended || GoogleUpdateSettings::GetCollectStatsConsent()) {
command_line->AppendSwitchWithValue(switches::kEnableCrashReporter,
ASCIIToWide(google_update::posix_guid +