Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: chrome/installer/util/util_constants.h

Issue 2333853002: Support --delete-old-versions in setup.exe. (Closed)
Patch Set: CR grt/rkaplow #8-9 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/setup/setup_singleton.cc ('k') | chrome/installer/util/util_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 REENABLE_UPDATES_FAILED = 56, // Autoupdates could not be enabled. 88 REENABLE_UPDATES_FAILED = 56, // Autoupdates could not be enabled.
89 UNPACKING_FAILED = 57, // Unpacking the (possibly patched) uncompressed 89 UNPACKING_FAILED = 57, // Unpacking the (possibly patched) uncompressed
90 // archive failed. 90 // archive failed.
91 IN_USE_DOWNGRADE = 58, // Successfully downgrade chrome but current 91 IN_USE_DOWNGRADE = 58, // Successfully downgrade chrome but current
92 // version is still running. 92 // version is still running.
93 OLD_VERSION_DOWNGRADE = 59, // Successfully downgrade chrome to an older 93 OLD_VERSION_DOWNGRADE = 59, // Successfully downgrade chrome to an older
94 // version. 94 // version.
95 SETUP_SINGLETON_ACQUISITION_FAILED = 60, // The setup process could not 95 SETUP_SINGLETON_ACQUISITION_FAILED = 60, // The setup process could not
96 // acquire the exclusive right to 96 // acquire the exclusive right to
97 // modify the Chrome installation. 97 // modify the Chrome installation.
98 SETUP_SINGLETON_RELEASED = 61, // The task did not complete because
99 // another process asked this
100 // process to release the exclusive
101 // right to modify the Chrome
102 // installation.
103 DELETE_OLD_VERSIONS_SUCCESS = 62, // All files that belong to old
104 // versions of Chrome were
105 // successfully deleted.
106 DELETE_OLD_VERSIONS_TOO_MANY_ATTEMPTS = 63, // A --delete-old-versions
107 // process exited after trying to
108 // delete all files that belong
109 // to old versions of Chrome too
110 // many times without success.
98 111
99 MAX_INSTALL_STATUS = 61, // Bump this out to make space for new results. 112 MAX_INSTALL_STATUS = 64, // When adding a new result, bump this and update
113 // the InstallStatus enum in histograms.xml.
100 }; 114 };
101 115
102 // The type of an update archive. 116 // The type of an update archive.
103 enum ArchiveType { 117 enum ArchiveType {
104 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. 118 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized.
105 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. 119 FULL_ARCHIVE_TYPE, // Full chrome.7z archive.
106 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. 120 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive.
107 }; 121 };
108 122
109 // Stages of an installation from which a progress indication is derived. 123 // Stages of an installation from which a progress indication is derived.
(...skipping 23 matching lines...) Expand all
133 NUM_STAGES // The number of stages. 147 NUM_STAGES // The number of stages.
134 }; 148 };
135 149
136 namespace switches { 150 namespace switches {
137 151
138 extern const char kChrome[]; 152 extern const char kChrome[];
139 extern const char kChromeFrame[]; 153 extern const char kChromeFrame[];
140 extern const char kChromeSxS[]; 154 extern const char kChromeSxS[];
141 extern const char kConfigureUserSettings[]; 155 extern const char kConfigureUserSettings[];
142 extern const char kCriticalUpdateVersion[]; 156 extern const char kCriticalUpdateVersion[];
157 extern const char kDeleteOldVersions[];
143 extern const char kDeleteProfile[]; 158 extern const char kDeleteProfile[];
144 extern const char kDisableLogging[]; 159 extern const char kDisableLogging[];
145 extern const char kDoNotLaunchChrome[]; 160 extern const char kDoNotLaunchChrome[];
146 extern const char kDoNotRegisterForUpdateLaunch[]; 161 extern const char kDoNotRegisterForUpdateLaunch[];
147 extern const char kDoNotRemoveSharedItems[]; 162 extern const char kDoNotRemoveSharedItems[];
148 extern const char kEnableLogging[]; 163 extern const char kEnableLogging[];
149 extern const char kForceConfigureUserSettings[]; 164 extern const char kForceConfigureUserSettings[];
150 extern const char kForceUninstall[]; 165 extern const char kForceUninstall[];
151 extern const char kInstallArchive[]; 166 extern const char kInstallArchive[];
152 extern const char kInstallerData[]; 167 extern const char kInstallerData[];
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 extern const char kCourgette[]; 269 extern const char kCourgette[];
255 extern const char kBsdiff[]; 270 extern const char kBsdiff[];
256 271
257 // Name of the allocator (and associated file) for storing histograms to be 272 // Name of the allocator (and associated file) for storing histograms to be
258 // reported by Chrome during its next upload. 273 // reported by Chrome during its next upload.
259 extern const char kSetupHistogramAllocatorName[]; 274 extern const char kSetupHistogramAllocatorName[];
260 275
261 } // namespace installer 276 } // namespace installer
262 277
263 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ 278 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_singleton.cc ('k') | chrome/installer/util/util_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698