| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/installer/util/util_constants.h" | 5 #include "chrome/installer/util/util_constants.h" |
| 6 | 6 |
| 7 namespace installer { | 7 namespace installer { |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| 11 // Whether to set Chrome to launch at computer startup. | 11 // Whether to set Chrome to launch at computer startup. |
| 12 const char kAutoLaunchChrome[] = "auto-launch-chrome"; | 12 const char kAutoLaunchChrome[] = "auto-launch-chrome"; |
| 13 | 13 |
| 14 // Install Chrome. | 14 // Install Chrome. |
| 15 // Currently this is only required when used in combination with kMultiInstall. | 15 // Currently this is only required when used in combination with kMultiInstall. |
| 16 const char kChrome[] = "chrome"; | 16 const char kChrome[] = "chrome"; |
| 17 | 17 |
| 18 // Install Chrome App Host. | 18 // Install Chrome App Host. |
| 19 const char kChromeAppHost[] = "app-host"; | 19 const char kChromeAppHost[] = "app-host"; |
| 20 | 20 |
| 21 // Install Chrome App Launcher. |
| 22 const char kChromeAppLauncher[] = "app-launcher"; |
| 23 |
| 21 // Install Chrome Frame. | 24 // Install Chrome Frame. |
| 22 const char kChromeFrame[] = "chrome-frame"; | 25 const char kChromeFrame[] = "chrome-frame"; |
| 23 | 26 |
| 24 // Installs Chrome Frame from an already installed multi-install of Chrome. | 27 // Installs Chrome Frame from an already installed multi-install of Chrome. |
| 25 const char kChromeFrameQuickEnable[] = "quick-enable-cf"; | 28 const char kChromeFrameQuickEnable[] = "quick-enable-cf"; |
| 26 | 29 |
| 27 // When installing Chrome Frame, install it in ready mode. | 30 // When installing Chrome Frame, install it in ready mode. |
| 28 // If --chrome-frame is not on the command line, this switch has no effect. | 31 // If --chrome-frame is not on the command line, this switch has no effect. |
| 29 const char kChromeFrameReadyMode[] = "ready-mode"; | 32 const char kChromeFrameReadyMode[] = "ready-mode"; |
| 30 | 33 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // The group this experiment belongs to. | 176 // The group this experiment belongs to. |
| 174 const char kExperimentGroup[] = "experiment-group"; | 177 const char kExperimentGroup[] = "experiment-group"; |
| 175 | 178 |
| 176 // A handle value of the key to write the results of the toast experiment | 179 // A handle value of the key to write the results of the toast experiment |
| 177 // to. See DuplicateGoogleUpdateSystemClientKey for details. | 180 // to. See DuplicateGoogleUpdateSystemClientKey for details. |
| 178 const char kToastResultsKey[] = "toast-results-key"; | 181 const char kToastResultsKey[] = "toast-results-key"; |
| 179 | 182 |
| 180 } // namespace switches | 183 } // namespace switches |
| 181 | 184 |
| 182 const wchar_t kChromeAppHostExe[] = L"app_host.exe"; | 185 const wchar_t kChromeAppHostExe[] = L"app_host.exe"; |
| 186 const wchar_t kChromeAppHostNewExe[] = L"app_host_new.exe"; |
| 183 const wchar_t kChromeDll[] = L"chrome.dll"; | 187 const wchar_t kChromeDll[] = L"chrome.dll"; |
| 184 const wchar_t kChromeExe[] = L"chrome.exe"; | 188 const wchar_t kChromeExe[] = L"chrome.exe"; |
| 185 const wchar_t kChromeFrameDll[] = L"npchrome_frame.dll"; | 189 const wchar_t kChromeFrameDll[] = L"npchrome_frame.dll"; |
| 186 const wchar_t kChromeFrameHelperExe[] = L"chrome_frame_helper.exe"; | 190 const wchar_t kChromeFrameHelperExe[] = L"chrome_frame_helper.exe"; |
| 187 const wchar_t kChromeFrameHelperWndClass[] = L"ChromeFrameHelperWindowClass"; | 191 const wchar_t kChromeFrameHelperWndClass[] = L"ChromeFrameHelperWindowClass"; |
| 188 const wchar_t kChromeFrameReadyModeField[] = L"ChromeFrameReadyMode"; | 192 const wchar_t kChromeFrameReadyModeField[] = L"ChromeFrameReadyMode"; |
| 189 const wchar_t kChromeLauncherExe[] = L"chrome_launcher.exe"; | 193 const wchar_t kChromeLauncherExe[] = L"chrome_launcher.exe"; |
| 190 const wchar_t kChromeNewExe[] = L"new_chrome.exe"; | 194 const wchar_t kChromeNewExe[] = L"new_chrome.exe"; |
| 191 const wchar_t kChromeOldExe[] = L"old_chrome.exe"; | 195 const wchar_t kChromeOldExe[] = L"old_chrome.exe"; |
| 192 const wchar_t kCmdInstallApp[] = L"install-application"; | 196 const wchar_t kCmdInstallApp[] = L"install-application"; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 216 const wchar_t kInstallerResult[] = L"InstallerResult"; | 220 const wchar_t kInstallerResult[] = L"InstallerResult"; |
| 217 const wchar_t kInstallerResultUIString[] = L"InstallerResultUIString"; | 221 const wchar_t kInstallerResultUIString[] = L"InstallerResultUIString"; |
| 218 const wchar_t kInstallerSuccessLaunchCmdLine[] = | 222 const wchar_t kInstallerSuccessLaunchCmdLine[] = |
| 219 L"InstallerSuccessLaunchCmdLine"; | 223 L"InstallerSuccessLaunchCmdLine"; |
| 220 | 224 |
| 221 // The presence of this environment variable with a value of 1 implies that | 225 // The presence of this environment variable with a value of 1 implies that |
| 222 // we should run as a system installation regardless of what is on the | 226 // we should run as a system installation regardless of what is on the |
| 223 // command line. | 227 // command line. |
| 224 const char kGoogleUpdateIsMachineEnvVar[] = "GoogleUpdateIsMachine"; | 228 const char kGoogleUpdateIsMachineEnvVar[] = "GoogleUpdateIsMachine"; |
| 225 | 229 |
| 230 const wchar_t kOptionAppLauncher[] = L"app-launcher"; |
| 226 const wchar_t kOptionMultiInstall[] = L"multi-install"; | 231 const wchar_t kOptionMultiInstall[] = L"multi-install"; |
| 227 const wchar_t kOptionReadyMode[] = L"ready-mode"; | 232 const wchar_t kOptionReadyMode[] = L"ready-mode"; |
| 228 | 233 |
| 229 // Chrome channel display names. | 234 // Chrome channel display names. |
| 230 const wchar_t kChromeChannelUnknown[] = L"unknown"; | 235 const wchar_t kChromeChannelUnknown[] = L"unknown"; |
| 231 const wchar_t kChromeChannelCanary[] = L"canary"; | 236 const wchar_t kChromeChannelCanary[] = L"canary"; |
| 232 const wchar_t kChromeChannelDev[] = L"dev"; | 237 const wchar_t kChromeChannelDev[] = L"dev"; |
| 233 const wchar_t kChromeChannelBeta[] = L"beta"; | 238 const wchar_t kChromeChannelBeta[] = L"beta"; |
| 234 const wchar_t kChromeChannelStable[] = L""; | 239 const wchar_t kChromeChannelStable[] = L""; |
| 235 | 240 |
| 236 const size_t kMaxAppModelIdLength = 64U; | 241 const size_t kMaxAppModelIdLength = 64U; |
| 237 | 242 |
| 238 } // namespace installer | 243 } // namespace installer |
| OLD | NEW |