summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad_linux.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/app/breakpad_linux.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/app/breakpad_linux.cc')
-rw-r--r--chrome/app/breakpad_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc
index e526659..a109be2 100644
--- a/chrome/app/breakpad_linux.cc
+++ b/chrome/app/breakpad_linux.cc
@@ -32,6 +32,7 @@
#include "chrome/common/chrome_descriptors.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/env_vars.h"
#include "chrome/installer/util/google_update_settings.h"
static const char kUploadURL[] =
@@ -721,7 +722,7 @@ void InitCrashReporter() {
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
const std::string process_type =
parsed_command_line.GetSwitchValueASCII(switches::kProcessType);
- const bool unattended = (getenv("CHROME_HEADLESS") != NULL);
+ const bool unattended = (getenv(WideToASCII(env_vars::kHeadless)) != NULL);
if (process_type.empty()) {
if (!(unattended || GoogleUpdateSettings::GetCollectStatsConsent()))
return;