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

Side by Side Diff: components/chrome_cleaner/public/constants/constants.h

Issue 2812223003: Move shared constants to //components/chrome_cleaner (Closed)
Patch Set: Code review Created 3 years, 8 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 2017 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 COMPONENTS_CHROME_CLEANER_PUBLIC_CONSTANTS_CONSTANTS_H_
6 #define COMPONENTS_CHROME_CLEANER_PUBLIC_CONSTANTS_CONSTANTS_H_
7
8 // Constants shared by the Chromium and the Chrome Cleanaup tool repos.
9
10 namespace chrome_cleaner {
11
12 // Switches sent from Chrome to either the Software Reporter or the Chrome
13 // Cleanup tool.
14
15 // The current Chrome channel. The value of this flag is an integer with values
16 // according to version_info::Channel enum.
17 extern const char kChromeChannelSwitch[];
18
19 // The path to Chrome's executable.
20 extern const char kChromeExePathSwitch[];
21
22 // The Mojo pipe token for IPC communication between the Software Reporter and
23 // Chrome.
24 extern const char kChromeMojoPipeTokenSwitch[];
25
26 // Indicates that a cleaner run was started by Chrome.
27 extern const char kChromePromptSwitch[];
28
29 // Indicates that the current Chrome installation was a system-level
30 // installation.
31 extern const char kChromeSystemInstallSwitch[];
32
33 // The Chrome version string.
34 extern const char kChromeVersionSwitch[];
35
36 // Indicates that crash reporting is enabled for the current user.
37 extern const char kEnableCrashReportingSwitch[];
38
39 // Indicates that the current user opted into Safe Browsing Extended Reporting.
40 extern const char kExtendedSafeBrowsingEnabledSwitch[];
41
42 // Identifier used to group all reports generated during the same run of the
43 // software reporter (which may include multiple invocations of the reporter
44 /// binary, each generating a report). An ASCII, base-64 encoded random string.
45 extern const char kSessionIdSwitch[];
46
47 // Indicates that metrics reporting is enabled for the current user.
48 extern const char kUmaUserSwitch[];
49
50 // Registry paths where the reporter and the cleaner will write metrics data
51 // to be reported by Chrome.
52
53 // TODO(b/647763) Change the registry key to properly handle cases when the
54 // user runs Google Chrome stable alongside Google Chrome SxS.
55 extern const wchar_t kSoftwareRemovalToolRegistryKey[];
56
57 // The suffix for the registry key where cleaner metrics are written to.
58 extern const wchar_t kCleanerSubKey[];
59 // The suffix for registry key paths where scan times will be written to.
60 extern const wchar_t kScanTimesSubKey[];
61
62 // Registry value names where metrics are written to.
63 extern const wchar_t kEndTimeValueName[];
64 extern const wchar_t kEngineErrorCodeValueName[];
65 extern const wchar_t kExitCodeValueName[];
66 extern const wchar_t kFoundUwsValueName[];
67 extern const wchar_t kLogsUploadResultValueName[];
68 extern const wchar_t kMemoryUsedValueName[];
69 extern const wchar_t kStartTimeValueName[];
70 extern const wchar_t kUploadResultsValueName[];
71 extern const wchar_t kVersionValueName[];
72
73 // Exit codes from the Software Reporter process identified by Chrome.
74 constexpr int kSwReporterCleanupNeeded = 0;
75 constexpr int kSwReporterNothingFound = 2;
76 constexpr int kSwReporterPostRebootCleanupNeeded = 4;
77 constexpr int kSwReporterDelayedPostRebootCleanupNeeded = 15;
78
79 // Values to be passed to the kChromePromptSwitch of the Chrome Cleanup Tool to
80 // indicate how the user interacted with the accept button.
81 enum class ChromePromptValue {
82 // The user accepted the prompt when the prompt was first shown.
83 kPrompted = 3,
84 // The user accepted the prompt after navigating to it from the menu.
85 kShownFromMenu = 4
86 };
87
88 } // namespace chrome_cleaner
89
90 #endif // COMPONENTS_CHROME_CLEANER_PUBLIC_CONSTANTS_CONSTANTS_H_
OLDNEW
« no previous file with comments | « components/chrome_cleaner/public/constants/BUILD.gn ('k') | components/chrome_cleaner/public/constants/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698