summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/shell_util.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 18:40:51 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 18:40:51 +0000
commit230388a45910240cd770cd5a29a39bad4ca19ce4 (patch)
treeacf911adf01178edd97294e1ad0dfc75adec8018 /chrome/installer/util/shell_util.cc
parent11495b1be2bf51b887a9403cb164ff21e0640f1a (diff)
downloadchromium_src-230388a45910240cd770cd5a29a39bad4ca19ce4.zip
chromium_src-230388a45910240cd770cd5a29a39bad4ca19ce4.tar.gz
chromium_src-230388a45910240cd770cd5a29a39bad4ca19ce4.tar.bz2
Revert "During uninstall if Chrome is set as default,"
allow user to choose another browser as default." reverting r23841 Review URL: http://codereview.chromium.org/173131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/shell_util.cc')
-rw-r--r--chrome/installer/util/shell_util.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index f21aeab..88674dc 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -583,32 +583,6 @@ bool ShellUtil::GetQuickLaunchPath(bool system_level, std::wstring* path) {
return true;
}
-void ShellUtil::GetRegisteredBrowsers(std::map<std::wstring,
- std::wstring>* browsers) {
- std::wstring base_key(ShellUtil::kRegStartMenuInternet);
- HKEY root = HKEY_LOCAL_MACHINE;
- for (RegistryKeyIterator iter(root, base_key.c_str()); iter.Valid(); ++iter) {
- std::wstring key = base_key + L"\\" + iter.Name();
- RegKey capabilities(root, (key + L"\\Capabilities").c_str());
- std::wstring name;
- if (!capabilities.Valid() ||
- !capabilities.ReadValue(L"ApplicationName", &name)) {
- RegKey base_key(root, key.c_str());
- if (!base_key.ReadValue(L"", &name))
- continue;
- }
- RegKey install_info(root, (key + L"\\InstallInfo").c_str());
- std::wstring command;
- if (!install_info.Valid() ||
- !install_info.ReadValue(L"ReinstallCommand", &command))
- continue;
- BrowserDistribution* dist = BrowserDistribution::GetDistribution();
- if (!name.empty() && !command.empty() &&
- name.find(dist->GetApplicationName()) == std::wstring::npos)
- (*browsers)[name] = command;
- }
-}
-
bool ShellUtil::GetUserSpecificDefaultBrowserSuffix(std::wstring* entry) {
wchar_t user_name[256];
DWORD size = _countof(user_name);