Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 5171515343503360: Issue #41 - Bring method of determining IE version up to date (Closed)
Patch Set: Final (?) 2 Created Jan. 5, 2015, 1:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/AdblockPlusClient.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -287,27 +287,6 @@
return isWhitelisted;
}
-int CAdblockPlusClient::GetIEVersion()
-{
- //HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer
- HKEY hKey;
- LSTATUS status = RegOpenKey(HKEY_LOCAL_MACHINE, L"Software\\Microsoft\\Internet Explorer", &hKey);
- if (status != 0)
- {
- return 0;
- }
- DWORD type, cbData;
- BYTE version[50];
- cbData = 50;
- status = RegQueryValueEx(hKey, L"Version", NULL, &type, (BYTE*)version, &cbData);
- if (status != 0)
- {
- return 0;
- }
- RegCloseKey(hKey);
- return (int)(version[0] - 48);
-}
-
bool CAdblockPlusClient::Matches(const std::wstring& url, const std::wstring& contentType, const std::wstring& domain)
{
Communication::OutputBuffer request;

Powered by Google App Engine
This is Rietveld