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

Side by Side Diff: chrome/installer/setup/app_launcher_installer.h

Issue 811283002: [Installer] Cleaning up dead code for App Launcher / App Host installs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanups; handle ChannelInfo to remove '-apphost' and '-applauncher'. Created 5 years, 11 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 (c) 2014 The Chromium Authors. All rights reserved.
grt (UTC plus 2) 2015/01/08 21:41:49 nit: no (c) in the latest copyright template (http
huangs 2015/01/18 01:18:23 Done.
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 the Google Chrome Browser, but it
grt (UTC plus 2) 2015/01/08 21:41:49 nit: "the Google Chrome Browser" -> "Google Chrome
huangs 2015/01/18 01:18:24 Done.
6 // has a distinct registry entry. The functions in this file tap into various
7 // points 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 class Version;
21 } // namespace base
22
23 class WorkItemList;
24
25 namespace installer {
26
27 class InstallerState;
28
29 namespace app_launcher_installer {
grt (UTC plus 2) 2015/01/08 21:41:49 nix this extra namespace: the installer namespace
huangs 2015/01/18 01:18:23 I want to make it very easy to find entry points t
grt (UTC plus 2) 2015/01/20 21:30:22 Use of namespaces is somewhat discouraged (see htt
huangs 2015/01/20 23:26:00 Removed.
30
31 // Create Version key for a App Launcher (if not already present) and sets the
32 // new product version as the last step. We need this for App Launcher in
33 // order for shadow registry key to work.
34 void AddAppLauncherVersionKeyWorkItems(
35 HKEY root,
36 const base::Version& new_version,
37 bool add_language_identifier,
38 WorkItemList* list);
39
40 // Adds work item to unconditionally remove legacy executables.
41 void AddRemoveLegacyAppHostExeWorkItems(const base::FilePath& target_path,
42 const base::FilePath& temp_path,
43 WorkItemList* list);
44
45 // Adds work item to unconditionally remove legacy app commands like
46 // "install-application", "install-extension", and
47 // "quick-enable-application-host".
48 void AddRemoveLegacyAppCommandsWorkItems(
49 const InstallerState& installer_state,
50 WorkItemList* work_item_list);
51
52 // Called during uninstall, to remove "shadow" registry key for App Launcher.
grt (UTC plus 2) 2015/01/08 21:41:49 Document what the function does rather than when i
huangs 2015/01/18 01:18:23 Done.
53 // Note: The key is added by App Launcher in SetDidRunForNDayActiveStats().
54 void RemoveShadowKey(HKEY reg_root);
grt (UTC plus 2) 2015/01/08 21:41:49 RemoveShadowKey -> RemoveAppLauncherVersionKey, an
huangs 2015/01/18 01:18:24 Done.
55
56 } // namespace app_launcher_installer
57 } // namespace installer
58
59 #endif // defined(GOOGLE_CHROME_BUILD)
60
61 #endif // CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698