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

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

Issue 10823437: Callback flow to register Chrome and update shortcuts after OS upgrade to Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Supplying mock data for unit tests; refactoring. Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains the declarations of the installer functions that build 5 // This file contains the declarations of the installer functions that build
6 // the WorkItemList used to install the application. 6 // the WorkItemList used to install the application.
7 7
8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // This method adds work items to create (or update) Chrome uninstall entry in 141 // This method adds work items to create (or update) Chrome uninstall entry in
142 // either the Control Panel->Add/Remove Programs list or in the Omaha client 142 // either the Control Panel->Add/Remove Programs list or in the Omaha client
143 // state key if running under an MSI installer. 143 // state key if running under an MSI installer.
144 void AddUninstallShortcutWorkItems(const InstallerState& installer_state, 144 void AddUninstallShortcutWorkItems(const InstallerState& installer_state,
145 const FilePath& setup_path, 145 const FilePath& setup_path,
146 const Version& new_version, 146 const Version& new_version,
147 WorkItemList* install_list, 147 WorkItemList* install_list,
148 const Product& product); 148 const Product& product);
149 149
150 // Create Version key for a product (if not already present) and sets the new 150 // Creates Version key for a product (if not already present) and sets the new
151 // product version as the last step. If |add_language_identifier| is true, the 151 // product version as the last step. If |add_language_identifier| is true, the
152 // "lang" value is also set according to the currently selected translation. 152 // "lang" value is also set according to the currently selected translation.
153 void AddVersionKeyWorkItems(HKEY root, 153 void AddVersionKeyWorkItems(HKEY root,
154 BrowserDistribution* dist, 154 BrowserDistribution* dist,
155 const Version& new_version, 155 const Version& new_version,
156 bool add_language_identifier, 156 bool add_language_identifier,
157 WorkItemList* list); 157 WorkItemList* list);
158 158
159 // Unregisters the "opv" version of ChromeLauncher from IE's low rights 159 // Unregisters the "opv" version of ChromeLauncher from IE's low rights
160 // elevation policy. 160 // elevation policy.
161 void AddDeleteOldIELowRightsPolicyWorkItems( 161 void AddDeleteOldIELowRightsPolicyWorkItems(
162 const InstallerState& installer_state, 162 const InstallerState& installer_state,
163 WorkItemList* install_list); 163 WorkItemList* install_list);
164 164
165 // Adds work items to copy IE low rights policies for an in-use update. 165 // Adds work items to copy IE low rights policies for an in-use update.
166 void AddCopyIELowRightsPolicyWorkItems(const InstallerState& installer_state, 166 void AddCopyIELowRightsPolicyWorkItems(const InstallerState& installer_state,
167 WorkItemList* install_list); 167 WorkItemList* install_list);
168 168
169 // Utility method currently shared between install.cc and install_worker.cc 169 // Utility method currently shared between install.cc and install_worker.cc
170 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, 170 void AppendUninstallCommandLineFlags(const InstallerState& installer_state,
171 const Product& product, 171 const Product& product,
172 CommandLine* uninstall_cmd); 172 CommandLine* uninstall_cmd);
173 173
174 // Refreshes the elevation policy on platforms where it is supported. 174 // Refreshes the elevation policy on platforms where it is supported.
175 void RefreshElevationPolicy(); 175 void RefreshElevationPolicy();
176 176
177 // Add work items to add or remove the "quick-enable-cf" to the multi-installer 177 // Adds work items to add or remove the "quick-enable-cf" to the multi-installer
178 // binaries' version key on the basis of the current operation (represented in 178 // binaries' version key on the basis of the current operation (represented in
179 // |installer_state|) and the pre-existing machine configuration (represented in 179 // |installer_state|) and the pre-existing machine configuration (represented in
180 // |machine_state|). |setup_path| (the path to the executable currently being 180 // |machine_state|). |setup_path| (the path to the executable currently being
181 // run) and |new_version| (the version of the product(s) currently being 181 // run) and |new_version| (the version of the product(s) currently being
182 // installed) are required when processing product installation; they are unused 182 // installed) are required when processing product installation; they are unused
183 // (and may therefore be NULL) when uninstalling. 183 // (and may therefore be NULL) when uninstalling.
184 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state, 184 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state,
185 const InstallationState& machine_state, 185 const InstallationState& machine_state,
186 const FilePath* setup_path, 186 const FilePath* setup_path,
187 const Version* new_version, 187 const Version* new_version,
188 WorkItemList* work_item_list); 188 WorkItemList* work_item_list);
189 189
190 // Add work items to add or remove the "quick-enable-application-host" command 190 // Adds work items to add or remove the "quick-enable-application-host" command
191 // to the multi-installer binaries' version key on the basis of the current 191 // to the multi-installer binaries' version key on the basis of the current
192 // operation (represented in |installer_state|) and the pre-existing machine 192 // operation (represented in |installer_state|) and the pre-existing machine
193 // configuration (represented in |machine_state|). |setup_path| (the path to 193 // configuration (represented in |machine_state|). |setup_path| (the path to
194 // the executable currently being run) and |new_version| (the version of the 194 // the executable currently being run) and |new_version| (the version of the
195 // product(s) currently being installed) are required when processing product 195 // product(s) currently being installed) are required when processing product
196 // installation; they are unused (and may therefore be NULL) when uninstalling. 196 // installation; they are unused (and may therefore be NULL) when uninstalling.
197 void AddQuickEnableApplicationHostWorkItems( 197 void AddQuickEnableApplicationHostWorkItems(
198 const InstallerState& installer_state, 198 const InstallerState& installer_state,
199 const InstallationState& machine_state, 199 const InstallationState& machine_state,
200 const FilePath* setup_path, 200 const FilePath* setup_path,
201 const Version* new_version, 201 const Version* new_version,
202 WorkItemList* work_item_list); 202 WorkItemList* work_item_list);
203 203
204 // Adds work items to add or remove the "on-os-upgrade" command to |product|'s
205 // version key on the basis of the current operation (represented in
206 // |installer_state|). |new_version| (the version of the product(s)
207 // currently being installed) is required when processing product
208 // installation; it is unused (and may therefore be NULL) when uninstalling.
209 void AddOsUpgradeWorkItems(const InstallerState& installer_state,
210 const FilePath* setup_path,
211 const Version* new_version,
212 const Product& product,
213 WorkItemList* install_list);
214
204 } // namespace installer 215 } // namespace installer
205 216
206 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 217 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698