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 // Defines all install related constants that need to be used by Chrome as | 5 // Defines all install related constants that need to be used by Chrome as |
6 // well as Chrome Installer. | 6 // well as Chrome Installer. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
9 #define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 9 #define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 // multi-install installation of the same product | 63 // multi-install installation of the same product |
64 // on the system. | 64 // on the system. |
65 READY_MODE_OPT_IN_FAILED, // 36. Failed to opt-into Chrome Frame. | 65 READY_MODE_OPT_IN_FAILED, // 36. Failed to opt-into Chrome Frame. |
66 READY_MODE_TEMP_OPT_OUT_FAILED, // 37. Failed to temporarily opt-out of | 66 READY_MODE_TEMP_OPT_OUT_FAILED, // 37. Failed to temporarily opt-out of |
67 // Chrome Frame. | 67 // Chrome Frame. |
68 READY_MODE_END_TEMP_OPT_OUT_FAILED, // 38. Failed to end temporary opt-out | 68 READY_MODE_END_TEMP_OPT_OUT_FAILED, // 38. Failed to end temporary opt-out |
69 // of Chrome Frame. | 69 // of Chrome Frame. |
70 CONFLICTING_CHANNEL_EXISTS, // 39. A multi-install product on a different | 70 CONFLICTING_CHANNEL_EXISTS, // 39. A multi-install product on a different |
71 // update channel exists. | 71 // update channel exists. |
72 READY_MODE_REQUIRES_CHROME, // 40. Chrome Frame in ready-mode requires Chrome | 72 READY_MODE_REQUIRES_CHROME, // 40. Chrome Frame in ready-mode requires Chrome |
73 REQUIRES_MULTI_INSTALL, // 41. --multi-install was missing from the | 73 APP_HOST_REQUIRES_MULTI_INSTALL, // 41. --multi-install was missing from the |
grt (UTC plus 2)
2012/07/24 15:02:03
this value was never used (really), so i'm repurpo
| |
74 // command line. | 74 // command line. |
75 APPLY_DIFF_PATCH_FAILED, // 42. Failed to apply a diff patch. | 75 APPLY_DIFF_PATCH_FAILED, // 42. Failed to apply a diff patch. |
76 INCONSISTENT_UPDATE_POLICY, // 43. Inconsistent update policy GP settings. | 76 INCONSISTENT_UPDATE_POLICY, // 43. Inconsistent update policy GP settings. |
77 APP_HOST_REQUIRES_USER_LEVEL, // 44. --system-level is forbidden. | |
78 APP_HOST_REQUIRES_BINARIES, // 45. No Chrome binaries at either level. | |
77 }; | 79 }; |
78 | 80 |
79 | 81 |
80 // If the following compile assert fires it means that the InstallStatus | 82 // If the following compile assert fires it means that the InstallStatus |
81 // enumeration changed which will break the contract between the old | 83 // enumeration changed which will break the contract between the old |
82 // chrome installed and the new setup.exe that is trying to upgrade. | 84 // chrome installed and the new setup.exe that is trying to upgrade. |
83 COMPILE_ASSERT(installer::INCONSISTENT_UPDATE_POLICY == 43, | 85 COMPILE_ASSERT(installer::INCONSISTENT_UPDATE_POLICY == 43, |
gab
2012/07/24 16:57:10
Change this to COMPILE_ASSERT(installer::APP_HOST_
grt (UTC plus 2)
2012/07/24 20:31:29
Nice catch, thanks.
gab
2012/07/24 20:34:49
lgtm
| |
84 dont_change_enum); | 86 dont_change_enum); |
85 | 87 |
86 // The type of an update archive. | 88 // The type of an update archive. |
87 enum ArchiveType { | 89 enum ArchiveType { |
88 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. | 90 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. |
89 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. | 91 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. |
90 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. | 92 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. |
91 }; | 93 }; |
92 | 94 |
93 // Stages of an installation reported through Google Update on failure. | 95 // Stages of an installation reported through Google Update on failure. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 extern const wchar_t kChromeChannelCanary[]; | 221 extern const wchar_t kChromeChannelCanary[]; |
220 extern const wchar_t kChromeChannelDev[]; | 222 extern const wchar_t kChromeChannelDev[]; |
221 extern const wchar_t kChromeChannelBeta[]; | 223 extern const wchar_t kChromeChannelBeta[]; |
222 extern const wchar_t kChromeChannelStable[]; | 224 extern const wchar_t kChromeChannelStable[]; |
223 | 225 |
224 extern const size_t kMaxAppModelIdLength; | 226 extern const size_t kMaxAppModelIdLength; |
225 | 227 |
226 } // namespace installer | 228 } // namespace installer |
227 | 229 |
228 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 230 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
OLD | NEW |