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

Unified Diff: chrome/installer/setup/uninstall.cc

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: Renaming kRegAutoRunOnOSUpgrade to kRegAutoRunOnOSUpgradeField; deleting bad debug message. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/app_command.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/uninstall.cc
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc
index 3e34d577caa9ae0256c0975b37ca880ee10406ea..a501a8f4a4aa9ab5973f24f7d2c48450d2facd50 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -127,6 +127,17 @@ void ProcessGoogleUpdateItems(
}
}
+void ProcessOnOsUpgradeWorkItems(
+ const installer::InstallerState& installer_state,
+ const installer::Product& product) {
+ scoped_ptr<WorkItemList> work_item_list(
+ WorkItem::CreateNoRollbackWorkItemList());
+ AddOsUpgradeWorkItems(installer_state, NULL, NULL, product,
+ work_item_list.get());
+ if (!work_item_list->Do())
+ LOG(ERROR) << "Failed to remove on-os-upgrade command.";
+}
+
// Adds or removes the quick-enable-cf command to the binaries' version key in
// the registry as needed.
void ProcessQuickEnableWorkItems(
@@ -1066,6 +1077,8 @@ InstallStatus UninstallProduct(const InstallationState& original_state,
ProcessDelegateExecuteWorkItems(installer_state, product);
+ ProcessOnOsUpgradeWorkItems(installer_state, product);
+
// TODO(gab): This is only disabled for M22 as the shortcut CL using Active
// Setup will not make it in M22.
#if 0
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/app_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698