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

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

Issue 1982653002: Add best-effort/allow rollback flags on WorkItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for official builds Created 4 years, 7 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
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/setup/app_launcher_installer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // The App Launcher is an adjunct product of Google Chrome, but it has a 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 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 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 8 // removal of deprecated app commands. This concentrates ugly code to to one
9 // place to facilitate future refactoring. 9 // place to facilitate future refactoring.
10 10
11 #ifndef CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ 11 #ifndef CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_
12 #define CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ 12 #define CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_
13 13
14 #if defined(GOOGLE_CHROME_BUILD)
grt (UTC plus 2) 2016/05/16 18:55:01 why remove this?
fdoray 2016/05/17 17:18:48 To catch build errors before code reaches internal
15
16 #include <windows.h> 14 #include <windows.h>
17 15
18 namespace base { 16 namespace base {
19 class FilePath; 17 class FilePath;
20 class Version;
21 } // namespace base 18 } // namespace base
22 19
23 class WorkItemList; 20 class WorkItemList;
24 21
25 namespace installer { 22 namespace installer {
26 23
27 class InstallerState; 24 class InstallerState;
28 25
29 // Create Version key for a App Launcher (if not already present) and sets the
30 // new product version as the last step. We need this for App Launcher in
31 // order for shadow registry key to work.
32 void AddAppLauncherVersionKeyWorkItems(
grt (UTC plus 2) 2016/05/16 18:55:01 why mix the WI refactor with removing this code?
fdoray 2016/05/17 17:18:48 created a separate CL https://codereview.chromium.
33 HKEY root,
34 const base::Version& new_version,
35 bool add_language_identifier,
36 WorkItemList* list);
37
38 // Remove App Launcher's registry key, so it is in sync with Google Chrome's. 26 // Remove App Launcher's registry key, so it is in sync with Google Chrome's.
39 // Note: The key is added by App Launcher in SetDidRunForNDayActiveStats(). 27 // Note: The key is added by App Launcher in SetDidRunForNDayActiveStats().
40 void RemoveAppLauncherVersionKey(HKEY reg_root); 28 void RemoveAppLauncherVersionKey(HKEY reg_root);
41 29
42 // Adds work item to unconditionally remove legacy executables. 30 // Adds work item to unconditionally remove legacy executables.
43 void AddRemoveLegacyAppHostExeWorkItems(const base::FilePath& target_path, 31 void AddRemoveLegacyAppHostExeWorkItems(const base::FilePath& target_path,
44 const base::FilePath& temp_path, 32 const base::FilePath& temp_path,
45 WorkItemList* list); 33 WorkItemList* list);
46 34
47 // Adds work item to unconditionally remove legacy app commands like
48 // "install-application", "install-extension", and
49 // "quick-enable-application-host".
50 void AddRemoveLegacyAppCommandsWorkItems(
51 const InstallerState& installer_state,
52 WorkItemList* work_item_list);
53
54 } // namespace installer 35 } // namespace installer
55 36
56 #endif // defined(GOOGLE_CHROME_BUILD)
57
58 #endif // CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_ 37 #endif // CHROME_INSTALLER_SETUP_APP_LAUNCHER_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/setup/app_launcher_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698