summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/shell_util.cc
diff options
context:
space:
mode:
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);