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

Unified Diff: Shared/PluginSettings.cpp

Issue 9998007: Initial libadblockplus integration (Closed)
Patch Set: Created April 1, 2013, 9:55 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: Shared/PluginSettings.cpp
===================================================================
--- a/Shared/PluginSettings.cpp
+++ b/Shared/PluginSettings.cpp
@@ -399,17 +399,6 @@
s_criticalSectionFilters.Lock();
{
m_filterUrlList.clear();
- /* m_filterUrlList[CString(FILTERS_PROTOCOL) + CString(FILTERS_HOST) + "/easylist.txt"] = 1;
-
- m_filterFileNameList.clear();
- m_filterFileNameList[CString(FILTERS_PROTOCOL) + CString(FILTERS_HOST) + "/easylist.txt"] = "filter1.txt";
-
- m_filterLanguagesList.clear();
- m_filterLanguagesList[CString(FILTERS_PROTOCOL) + CString(FILTERS_HOST) + "/easylist.txt"] = "en";
-
- m_filterDownloadTimesList.clear();
- m_filterDownloadTimesList[CString(FILTERS_PROTOCOL) + CString(FILTERS_HOST) + "/easylist.txt"] = time(NULL);
- */
}
s_criticalSectionFilters.Unlock();
@@ -496,7 +485,7 @@
if (this->FilterlistExpired(downloadFilterName))
{
DEBUG_GENERAL("*** before DownloadFilterFile: " + downloadFilterName);
- CPluginFilter::DownloadFilterFile(downloadFilterName, filename);
+// CPluginFilter::DownloadFilterFile(downloadFilterName, filename);
Felix Dahlke 2013/04/03 05:35:27 Might as well remove this line, likewise below.
this->SetFilterRefreshDate(downloadFilterName, time(NULL) + (5 * 24 * 60 * 60) * ((rand() % 100) / 100 * 0.4 + 0.8));
}
}
@@ -521,7 +510,7 @@
{
if (it->second == L"en")
{
- CPluginFilter::DownloadFilterFile(it->first, m_filterFileNameList.find(it->first)->second);
+// CPluginFilter::DownloadFilterFile(it->first, m_filterFileNameList.find(it->first)->second);
this->SetFilterRefreshDate(it->first, time(NULL) + (5 * 24 * 60 * 60) * ((rand() % 100) / 100 * 0.4 + 0.8));
}
}
« Shared/PluginFilter.cpp ('K') | « Shared/PluginFilter.cpp ('k') | Shared/PluginStdAfx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld