summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/uninstall.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 17:23:59 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 17:23:59 +0000
commit6177e387dcc6a6d326b6c7175dfdce4951c59913 (patch)
treec738f91c384e0486f79596f49351f4b7901723fd /chrome/installer/setup/uninstall.cc
parente5c8dcf75ad644cd45e54ce047bdccb0217e63e4 (diff)
downloadchromium_src-6177e387dcc6a6d326b6c7175dfdce4951c59913.zip
chromium_src-6177e387dcc6a6d326b6c7175dfdce4951c59913.tar.gz
chromium_src-6177e387dcc6a6d326b6c7175dfdce4951c59913.tar.bz2
Fix bugs related to making Chrome default browser on Vista and also do some cleanup.
- Stupid bug where we were failing if there was a space or '-' in the path to setup.exe - Some application still read default browser from Software\Classes\http even on Vista so set that - Some refactoring of apppaths changes to make a method private that doesn't need to be public. - Move constants in shell_util where rest of the shell related constants are. - Remove duplicate attempts to create ChromeHTML key BUG=7568,6732,6504 Review URL: http://codereview.chromium.org/21259 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/uninstall.cc')
-rw-r--r--chrome/installer/setup/uninstall.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc
index 6e2c40d..cdc2f78 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -257,7 +257,9 @@ installer_util::InstallStatus installer_setup::UninstallChrome(
dist->GetApplicationName());
// Delete the App Paths key that lets explorer find Chrome.
- DeleteRegistryKey(hklm_key, installer_util::kAppPathsRegistryKey);
+ std::wstring app_path_key(ShellUtil::kAppPathsRegistryKey);
+ file_util::AppendToPath(&app_path_key, installer_util::kChromeExe);
+ DeleteRegistryKey(hklm_key, app_path_key);
// Delete media player registry key that exists only in HKLM.
std::wstring reg_path(installer::kMediaPlayerRegPath);