OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 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_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ | |
6 #define CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ | |
7 | |
8 #include <windows.h> | |
9 | |
10 namespace base { | |
11 class Version; | |
12 } // namespace base | |
13 | |
14 class WorkItemList; | |
15 | |
16 namespace installer { | |
17 | |
18 class InstallerState; | |
19 | |
20 // The App Launcher is an adjunct product of Chrome Browser, but it has a | |
21 // distinct registry entry. This class taps into various points in installer | |
22 // flow to update the App Launcher's registry, including the removal of | |
23 // deprecated app commands. This concentrates ugly code to to one place to | |
24 // facilitate future refactoring. | |
25 class AppLauncherInstaller { | |
grt (UTC plus 2)
2014/12/18 19:27:36
don't use a class as a container of static member
huangs
2015/01/05 06:01:12
Replaced with namespace app_launcher_installer.
| |
26 public: | |
27 // Create Version key for a App Launcher (if not already present) and sets the | |
28 // new product version as the last step. We need this for App Launcher in | |
29 // order for shadow registry key to work. | |
30 static void AddAppLauncherVersionKeyWorkItems( | |
31 HKEY root, | |
32 const base::Version& new_version, | |
33 bool add_language_identifier, | |
34 WorkItemList* list); | |
35 | |
36 // Called during uninstall, to remove "shadow" registry key for App Launcher. | |
37 // Note: The key is added by App Launcher in SetDidRunForNDayActiveStats(). | |
38 static void OnUninstall(HKEY reg_root); | |
39 | |
40 // Unconditionally remove legacy app commands like "install-application", | |
41 // "install-extension", and "quick-enable-application-host". | |
42 static void RemoveLegacyAppCommandsWorkItems( | |
grt (UTC plus 2)
2014/12/18 19:27:36
these functions are normally called AddFooWorkItem
huangs
2015/01/05 06:01:12
Renamed to AddRemoveLegacyAppCommandsWorkItems() a
| |
43 const InstallerState& installer_state, | |
44 WorkItemList* work_item_list); | |
45 }; | |
46 | |
47 } // namespace installer | |
48 | |
49 #endif // CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ | |
OLD | NEW |