summaryrefslogtreecommitdiffstats
path: root/chrome/browser/crash_handler_host_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/browser/crash_handler_host_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/browser/crash_handler_host_linux.cc')
-rw-r--r--chrome/browser/crash_handler_host_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/crash_handler_host_linux.cc b/chrome/browser/crash_handler_host_linux.cc
index dc803ec..b7a7367 100644
--- a/chrome/browser/crash_handler_host_linux.cc
+++ b/chrome/browser/crash_handler_host_linux.cc
@@ -25,6 +25,7 @@
#include "chrome/app/breakpad_linux.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/env_vars.h"
// Since classes derived from CrashHandlerHostLinux are singletons, it's only
// destroyed at the end of the processes lifetime, which is greater in span than
@@ -194,7 +195,7 @@ void CrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) {
bool upload = true;
FilePath dumps_path("/tmp");
- if (getenv("CHROME_HEADLESS")) {
+ if (getenv(WideToASCII(env_vars::kHeadless))) {
upload = false;
PathService::Get(chrome::DIR_CRASH_DUMPS, &dumps_path);
}