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

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

Issue 11359219: Configure system-level Chrome settings (i.e. install its shortcuts) immediately following self-dest… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | chrome/installer/util/shell_util.cc » ('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..32d508d24fe5dadcdb5c886f53d74b3002c5dfb5 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -1270,6 +1270,18 @@ InstallStatus UninstallProduct(const InstallationState& original_state,
if (!backup_state_file.empty())
file_util::Delete(backup_state_file, false);
+ // Upon uninstalling user-level Chrome, install shortcuts to the system-level
+ // Chrome if it exists (in most such cases the user-level uninstall is a
+ // self-destruction).
+ if (product.is_chrome() && !installer_state.system_install()) {
+ const ProductState* system_level_product_state =
+ original_state.GetProductState(true, browser_dist->GetType());
+ if (system_level_product_state) {
+ FilePath system_chrome_path(GetChromeInstallPath(true, browser_dist));
+ HandleActiveSetupForBrowser(system_chrome_path, product, true);
grt (UTC plus 2) 2012/11/16 04:32:32 this will do active setup for whatever version of
gab 2012/11/16 04:51:20 True, the other option is to trigger the system-le
+ }
+ }
+
return ret;
}
« no previous file with comments | « no previous file | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698