Index: chrome/installer/setup/uninstall.cc |
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc |
index b1c5c5b30caf7aa0a3406be6c7987778f4524bb5..7d403a3b91fbc7218ba2417ff82aed2f99ba86e7 100644 |
--- a/chrome/installer/setup/uninstall.cc |
+++ b/chrome/installer/setup/uninstall.cc |
@@ -1221,10 +1221,8 @@ InstallStatus UninstallProduct(const InstallationState& original_state, |
// Delete shared registry keys as well (these require admin rights) if |
// remove_all option is specified. |
if (remove_all) { |
- if (!InstallUtil::IsChromeSxSProcess() && is_chrome) { |
+ if (is_chrome && installer_state.system_install()) { |
// Delete media player registry key that exists only in HKLM. |
- // We don't delete this key in SxS uninstall or Chrome Frame uninstall |
- // as we never set the key for those products. |
base::string16 reg_path(installer::kMediaPlayerRegPath); |
reg_path.push_back(base::FilePath::kSeparators[0]); |
reg_path.append(installer::kChromeExe); |