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

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

Issue 11420045: Launch system-level Active Setup immediately following self-destruction of a user-level Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 8 years, 1 month 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/browser/chrome_browser_main.cc ('k') | chrome/installer/util/install_util.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 a8459b99bd412c31140fb274cd82a380c54a571a..a696b7aa32a43dd8585a63ad387d8de2c8518ef5 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -1270,6 +1270,14 @@ InstallStatus UninstallProduct(const InstallationState& original_state,
if (!backup_state_file.empty())
file_util::Delete(backup_state_file, false);
+ // If user-level Chrome is being uninstalled and system-level Chrome is
+ // present, launch the system-level Active Setup command to do post-install
+ // tasks for this user (i.e., create shortcuts).
+ if (product.is_chrome() && !installer_state.system_install() &&
+ original_state.GetProductState(true, browser_dist->GetType())) {
+ InstallUtil::TriggerActiveSetupCommand();
+ }
+
return ret;
}
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/installer/util/install_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698