OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 "components/chrome_cleaner/public/constants/constants.h" | 5 #include "components/chrome_cleaner/public/constants/constants.h" |
6 | 6 |
7 namespace chrome_cleaner { | 7 namespace chrome_cleaner { |
8 | 8 |
9 // Command line switches. | 9 // Command line switches. |
10 const char kChromeChannelSwitch[] = "chrome-channel"; | 10 const char kChromeChannelSwitch[] = "chrome-channel"; |
11 const char kChromeExePathSwitch[] = "chrome-exe-path"; | 11 const char kChromeExePathSwitch[] = "chrome-exe-path"; |
12 const char kChromeMojoPipeTokenSwitch[] = "chrome-mojo-pipe-token"; | 12 const char kChromeMojoPipeTokenSwitch[] = "chrome-mojo-pipe-token"; |
13 const char kChromePromptSwitch[] = "chrome-prompt"; | 13 const char kChromePromptSwitch[] = "chrome-prompt"; |
14 const char kChromeSystemInstallSwitch[] = "chrome-system-install"; | 14 const char kChromeSystemInstallSwitch[] = "chrome-system-install"; |
15 const char kChromeVersionSwitch[] = "chrome-version"; | 15 const char kChromeVersionSwitch[] = "chrome-version"; |
| 16 const char kEnableCleanerLoggingSwitch[] = "enable-cleaner-logging"; |
16 const char kEnableCrashReportingSwitch[] = "enable-crash-reporting"; | 17 const char kEnableCrashReportingSwitch[] = "enable-crash-reporting"; |
17 const char kEngineExperimentGroupSwitch[] = "engine-experiment-group"; | 18 const char kEngineExperimentGroupSwitch[] = "engine-experiment-group"; |
| 19 const char kEngineSwitch[] = "engine"; |
18 const char kExecutionModeSwitch[] = "execution-mode"; | 20 const char kExecutionModeSwitch[] = "execution-mode"; |
19 const char kExtendedSafeBrowsingEnabledSwitch[] = | 21 const char kExtendedSafeBrowsingEnabledSwitch[] = |
20 "extended-safebrowsing-enabled"; | 22 "extended-safebrowsing-enabled"; |
21 const char kRegistrySuffixSwitch[] = "registry-suffix"; | 23 const char kRegistrySuffixSwitch[] = "registry-suffix"; |
22 const char kSessionIdSwitch[] = "session-id"; | 24 const char kSessionIdSwitch[] = "session-id"; |
23 const char kUmaUserSwitch[] = "uma-user"; | 25 const char kUmaUserSwitch[] = "uma-user"; |
24 | 26 |
25 // Registry paths and subkeys. | 27 // Registry paths and subkeys. |
26 const wchar_t kSoftwareRemovalToolRegistryKey[] = | 28 const wchar_t kSoftwareRemovalToolRegistryKey[] = |
27 L"Software\\Google\\Software Removal Tool"; | 29 L"Software\\Google\\Software Removal Tool"; |
28 const wchar_t kCleanerSubKey[] = L"Cleaner"; | 30 const wchar_t kCleanerSubKey[] = L"Cleaner"; |
29 const wchar_t kScanTimesSubKey[] = L"ScanTimes"; | 31 const wchar_t kScanTimesSubKey[] = L"ScanTimes"; |
30 | 32 |
31 // Registry value names. | 33 // Registry value names. |
32 const wchar_t kEndTimeValueName[] = L"EndTime"; | 34 const wchar_t kEndTimeValueName[] = L"EndTime"; |
33 const wchar_t kEngineErrorCodeValueName[] = L"EngineErrorCode"; | 35 const wchar_t kEngineErrorCodeValueName[] = L"EngineErrorCode"; |
34 const wchar_t kExitCodeValueName[] = L"ExitCode"; | 36 const wchar_t kExitCodeValueName[] = L"ExitCode"; |
35 // Note: the lowercase "s" in "Uws" can't be fixed due to compatibility with | 37 // Note: the lowercase "s" in "Uws" can't be fixed due to compatibility with |
36 // older versions. | 38 // older versions. |
37 const wchar_t kFoundUwsValueName[] = L"FoundUws"; | 39 const wchar_t kFoundUwsValueName[] = L"FoundUws"; |
38 const wchar_t kLogsUploadResultValueName[] = L"LogsUploadResult"; | 40 const wchar_t kLogsUploadResultValueName[] = L"LogsUploadResult"; |
39 const wchar_t kMemoryUsedValueName[] = L"MemoryUsed"; | 41 const wchar_t kMemoryUsedValueName[] = L"MemoryUsed"; |
40 const wchar_t kStartTimeValueName[] = L"StartTime"; | 42 const wchar_t kStartTimeValueName[] = L"StartTime"; |
41 const wchar_t kUploadResultsValueName[] = L"UploadResults"; | 43 const wchar_t kUploadResultsValueName[] = L"UploadResults"; |
42 const wchar_t kVersionValueName[] = L"Version"; | 44 const wchar_t kVersionValueName[] = L"Version"; |
43 | 45 |
44 } // namespace chrome_cleaner | 46 } // namespace chrome_cleaner |
OLD | NEW |