Chromium Code Reviews| 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; |
| } |