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

Side by Side Diff: chrome/tools/disable_outdated_build_detector/constants.h

Issue 2193823002: A tool to disable the outdated build detector for organic installs of Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format tweak Created 4 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef CHROME_TOOLS_DISABLE_OUTDATED_BUILD_DETECTOR_CONSTANTS_H_
6 #define CHROME_TOOLS_DISABLE_OUTDATED_BUILD_DETECTOR_CONSTANTS_H_
7
8 #include <stdint.h>
9
10 namespace switches {
11
12 extern const char kMultiInstall[];
13 extern const char kSystemLevel[];
14
15 } // namespace switches
16
17 extern const wchar_t kChromeAppGuid[];
18 extern const wchar_t kBinariesAppGuid[];
19
20 extern const wchar_t kAOHY[];
21 extern const wchar_t kBrand[];
22 extern const wchar_t kInstallerResult[];
23 extern const wchar_t kInstallerError[];
24 extern const wchar_t kInstallerExtraCode1[];
25 extern const wchar_t kUninstallArguments[];
26
27 // Values for the process exit code and for Google Update's InstallerError,
28 // both of which are of type DWORD (a 32-bit unsigned int). The codes start at
29 // 1000 so as to not collide with existing setup.exe and mini_installer.exe
30 // exit codes (found in chrome/installer/util/util_constants.h and
31 // chrome/installer/mini_installer/exit_code.h, respectively).
32 enum class ExitCode : uint32_t {
33 // Success exit codes.
34 BOTH_BRANDS_UPDATED = 1000, // Both Chrome and the Binaries were updated.
35 CHROME_BRAND_UPDATED = 1001, // Only Chrome's brand was updated.
36 NO_CHROME = 1002, // Chrome's ClientState key was not found.
37 NON_ORGANIC_BRAND = 1003, // A non-organic brand was found, no update.
38
39 // Failure exit codes.
40 UNKNOWN_FAILURE = 1010, // Never reported.
41 UNSUPPORTED_OS = 1011, // Client OS is Windows 7 or newer.
42
43 // For these failure modes, Google Update's ExtraCode1 field is populated with
44 // the Windows error code corresponding to the failed operation.
45 FAILED_OPENING_KEY = 1012, // RegOpenKeyEx failed.
46 FAILED_READING_BRAND = 1013, // RegQueryValueEx failed.
47 FAILED_WRITING_BRAND = 1014, // RegSetValueEx failed.
48 };
49
50 // Values defined by Google Update.
51 enum class InstallerResult : uint32_t {
52 SUCCESS = 0,
53 FAILED_CUSTOM_ERROR = 1,
54 };
55
56 #endif // CHROME_TOOLS_DISABLE_OUTDATED_BUILD_DETECTOR_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698