Index: chrome/installer/setup/install_worker.cc |
diff --git a/chrome/installer/setup/install_worker.cc b/chrome/installer/setup/install_worker.cc |
index 5450e32947b91e6495cd6d54f93d1a996e69c3ea..40b71b7ce81a28aebb62e4ddfae32eba52c7aa55 100644 |
--- a/chrome/installer/setup/install_worker.cc |
+++ b/chrome/installer/setup/install_worker.cc |
@@ -1223,6 +1223,20 @@ void AddInstallWorkItems(const InstallationState& original_state, |
install_list); |
} |
+ // TODO(huangs): Implement actual migration code and remove the hack below. |
+ // If installing Chrome without the deprecated stand-alone App Launcher, |
+ // add "shadow" App Launcher registry keys so Google Update would recognize |
+ // the "dr" value in the App Launcher ClientState key. |
+ if (installer_state.is_multi_install() && |
grt (UTC plus 2)
2013/05/07 20:52:02
Please add to the comment that this magically omit
huangs
2013/05/08 01:22:02
Done. I assume that Chrome Canary does not have 7
|
+ installer_state.FindProduct(BrowserDistribution::CHROME_BROWSER) && |
+ !installer_state.FindProduct(BrowserDistribution::CHROME_APP_HOST)) { |
+ BrowserDistribution* shadow_app_launcher_dist = |
+ BrowserDistribution::GetSpecificDistribution( |
+ BrowserDistribution::CHROME_APP_HOST); |
+ AddVersionKeyWorkItems(root, shadow_app_launcher_dist, new_version, |
+ add_language_identifier, install_list); |
+ } |
+ |
// Add any remaining work items that involve special settings for |
// each product. |
AddProductSpecificWorkItems(original_state, installer_state, setup_path, |