[Extensions Toolbar] Observe original profile for extension host notifications
[chromium-blink-merge.git] / chrome / common / env_vars.cc
blob5499dc3ca8dd90ecc5f0c7b0b20d23cec45435d1
1 // Copyright (c) 2012 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.
5 #include "chrome/common/env_vars.h"
7 namespace env_vars {
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.
12 const char kHeadless[] = "CHROME_HEADLESS";
14 // The name of the log file.
15 const char kLogFileName[] = "CHROME_LOG_FILE";
17 // Flag indicating if metro viewer is connected to browser instance.
18 // As of now there is only one metro viewer instance per browser.
19 const char kMetroConnected[] = "CHROME_METRO_CONNECTED";
21 // The name of the session log directory when logged in to ChromeOS.
22 const char kSessionLogDir[] = "CHROMEOS_SESSION_LOG_DIR";
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.
27 const char kShowRestart[] = "CHROME_CRASHED";
28 const char kRestartInfo[] = "CHROME_RESTART";
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.
33 const char kRtlLocale[] = "RIGHT_TO_LEFT";
34 const char kLtrLocale[] = "LEFT_TO_RIGHT";
36 // Number of times to run a given startup_tests unit test.
37 const char kStartupTestsNumCycles[] = "STARTUP_TESTS_NUMCYCLES";
39 // The presence of this environment variable with a value of 1 implies that
40 // setup.exe should run as a system installation regardless of what is on the
41 // command line.
42 // TODO(erikwright): Put this in chrome/installer/util/util_constants.cc when
43 // http://crbug.com/174953 is fixed and widely deployed.
44 const char kGoogleUpdateIsMachineEnvVar[] = "GoogleUpdateIsMachine";
46 } // namespace env_vars