| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // The App Launcher is an adjunct product of Google Chrome, but it has a | |
| 6 // distinct registry entry. The functions in this file tap into various points | |
| 7 // in installer flow to update the App Launcher's registry, including the | |
| 8 // removal of deprecated app commands. This concentrates ugly code to to one | |
| 9 // place to facilitate future refactoring. | |
| 10 | |
| 11 #ifndef CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ | |
| 12 #define CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ | |
| 13 | |
| 14 #if defined(GOOGLE_CHROME_BUILD) | |
| 15 | |
| 16 #include <windows.h> | |
| 17 | |
| 18 namespace base { | |
| 19 class FilePath; | |
| 20 } // namespace base | |
| 21 | |
| 22 class WorkItemList; | |
| 23 | |
| 24 namespace installer { | |
| 25 | |
| 26 class InstallerState; | |
| 27 | |
| 28 // Remove App Launcher's registry key, so it is in sync with Google Chrome's. | |
| 29 // Note: The key is added by App Launcher in SetDidRunForNDayActiveStats(). | |
| 30 void RemoveAppLauncherVersionKey(HKEY reg_root); | |
| 31 | |
| 32 // Adds work item to unconditionally remove legacy executables. | |
| 33 void AddRemoveLegacyAppHostExeWorkItems(const base::FilePath& target_path, | |
| 34 const base::FilePath& temp_path, | |
| 35 WorkItemList* list); | |
| 36 | |
| 37 // Adds work item to unconditionally remove legacy app commands like | |
| 38 // "install-application", "install-extension", and | |
| 39 // "quick-enable-application-host". | |
| 40 void AddRemoveLegacyAppCommandsWorkItems( | |
| 41 const InstallerState& installer_state, | |
| 42 WorkItemList* work_item_list); | |
| 43 | |
| 44 } // namespace installer | |
| 45 | |
| 46 #endif // defined(GOOGLE_CHROME_BUILD) | |
| 47 | |
| 48 #endif // CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ | |
| OLD | NEW |