env_vars.cc revision 513209b27ff55e2841eac0e4120199c23acce758
1// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/common/env_vars.h"
6
7namespace env_vars {
8
9// We call running in unattended mode (for automated testing) "headless".
10// This mode can be enabled using this variable or by the kNoErrorDialogs
11// switch.
12const char kHeadless[] = "CHROME_HEADLESS";
13
14// The name of the log file.
15const char kLogFileName[] = "CHROME_LOG_FILE";
16
17// The name of the session log directory when logged in to ChromeOS.
18const char kSessionLogDir[] = "CHROMEOS_SESSION_LOG_DIR";
19
20// If this environment variable is set, Chrome on Windows will log
21// to Event Tracing for Windows.
22const char kEtwLogging[] = "CHROME_ETW_LOGGING";
23
24// CHROME_CRASHED exists if a previous instance of chrome has crashed. This
25// triggers the 'restart chrome' dialog. CHROME_RESTART contains the strings
26// that are needed to show the dialog.
27const char kShowRestart[] = "CHROME_CRASHED";
28const char kRestartInfo[] = "CHROME_RESTART";
29
30// The strings RIGHT_TO_LEFT and LEFT_TO_RIGHT indicate the locale direction.
31// For example, for Hebrew and Arabic locales, we use RIGHT_TO_LEFT so that the
32// dialog is displayed using the right orientation.
33const char kRtlLocale[] = "RIGHT_TO_LEFT";
34const char kLtrLocale[] = "LEFT_TO_RIGHT";
35
36// If the out-of-process breakpad could not be installed, we set this variable
37// according to the process.
38const char kNoOOBreakpad[] = "NO_OO_BREAKPAD";
39
40// Number of times to run a given startup_tests unit test.
41const char kStartupTestsNumCycles[] = "STARTUP_TESTS_NUMCYCLES";
42
43}  // namespace env_vars
44