OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #if defined(GOOGLE_CHROME_BUILD) | 5 #if defined(GOOGLE_CHROME_BUILD) |
6 | 6 |
7 #include "chrome/installer/setup/app_launcher_installer.h" | 7 #include "chrome/installer/setup/app_launcher_installer.h" |
8 | 8 |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/version.h" | 10 #include "base/version.h" |
(...skipping 17 matching lines...) Expand all Loading... | |
28 // only here so they can be removed from the registry. | 28 // only here so they can be removed from the registry. |
29 const wchar_t kLegacyCmdInstallApp[] = L"install-application"; | 29 const wchar_t kLegacyCmdInstallApp[] = L"install-application"; |
30 const wchar_t kLegacyCmdInstallExtension[] = L"install-extension"; | 30 const wchar_t kLegacyCmdInstallExtension[] = L"install-extension"; |
31 const wchar_t kLegacyCmdQueryEULAAcceptance[] = L"query-eula-acceptance"; | 31 const wchar_t kLegacyCmdQueryEULAAcceptance[] = L"query-eula-acceptance"; |
32 const wchar_t kLegacyCmdQuickEnableApplicationHost[] = | 32 const wchar_t kLegacyCmdQuickEnableApplicationHost[] = |
33 L"quick-enable-application-host"; | 33 L"quick-enable-application-host"; |
34 | 34 |
35 // The legacy app_host.exe executable, which should be eradicated. | 35 // The legacy app_host.exe executable, which should be eradicated. |
36 const wchar_t kLegacyChromeAppHostExe[] = L"app_host.exe"; | 36 const wchar_t kLegacyChromeAppHostExe[] = L"app_host.exe"; |
37 | 37 |
38 base::string16 GetAppLauncherDisplayName() { | |
39 return GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); | |
grt (UTC plus 2)
2016/08/02 13:26:30
calamity: looks like this string is unused altoget
| |
40 } | |
41 | |
42 void AddLegacyAppCommandRemovalItem(const InstallerState& installer_state, | 38 void AddLegacyAppCommandRemovalItem(const InstallerState& installer_state, |
43 const AppRegistrationData& reg_data, | 39 const AppRegistrationData& reg_data, |
44 const wchar_t* name, | 40 const wchar_t* name, |
45 WorkItemList* list) { | 41 WorkItemList* list) { |
46 // Ignore failures since this is a clean-up operation and shouldn't block | 42 // Ignore failures since this is a clean-up operation and shouldn't block |
47 // install or update. | 43 // install or update. |
48 auto* delete_reg_key_work_item = list->AddDeleteRegKeyWorkItem( | 44 auto* delete_reg_key_work_item = list->AddDeleteRegKeyWorkItem( |
49 installer_state.root_key(), GetRegistrationDataCommandKey(reg_data, name), | 45 installer_state.root_key(), GetRegistrationDataCommandKey(reg_data, name), |
50 KEY_WOW64_32KEY); | 46 KEY_WOW64_32KEY); |
51 delete_reg_key_work_item->set_best_effort(true); | 47 delete_reg_key_work_item->set_best_effort(true); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 // Remove "quick-enable-application-host" command from Binaries. | 93 // Remove "quick-enable-application-host" command from Binaries. |
98 AddLegacyAppCommandRemovalItem(installer_state, binaries_reg_data, | 94 AddLegacyAppCommandRemovalItem(installer_state, binaries_reg_data, |
99 kLegacyCmdQuickEnableApplicationHost, list); | 95 kLegacyCmdQuickEnableApplicationHost, list); |
100 } | 96 } |
101 } | 97 } |
102 } | 98 } |
103 | 99 |
104 } // namespace installer | 100 } // namespace installer |
105 | 101 |
106 #endif // GOOGLE_CHROME_BUILD | 102 #endif // GOOGLE_CHROME_BUILD |
OLD | NEW |