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

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

Issue 62100: Avoid Google Chrome/Chromium default browser conflict by renaming Capabilities key. (Closed)
Patch Set: Fixed couple of mistakes. Created 11 years, 8 months 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 138f1da52192a536a10a3d6f1dcb5e5e37a2ff2d..d0b65ae1584f9f2f1ecad65728cacd2b9bc52772 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -249,8 +249,14 @@ installer_util::InstallStatus installer_setup::UninstallChrome(
DeleteRegistryKey(key, html_prog_id);
std::wstring set_access_key(ShellUtil::kRegStartMenuInternet);
- file_util::AppendToPath(&set_access_key, installer_util::kChromeExe);
+ file_util::AppendToPath(&set_access_key, dist->GetApplicationName());
DeleteRegistryKey(key, set_access_key);
+ // We have renamed the StartMenuInternet\chrome.exe to
+ // StartMenuInternet\Chromium so for old users we still need to delete
+ // the old key.
+ std::wstring old_set_access_key(ShellUtil::kRegStartMenuInternet);
+ file_util::AppendToPath(&old_set_access_key, installer_util::kChromeExe);
+ DeleteRegistryKey(key, old_set_access_key);
DeleteRegistryValue(reg_root, ShellUtil::kRegRegisteredApplications,
dist->GetApplicationName());
« 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