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

Unified Diff: Shared/PluginWbPassThrough.cpp

Issue 8949229: Removal of all user tracking and shareware parts (Closed)
Patch Set: Created Dec. 6, 2012, 4:38 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
« AdBlocker/SimpleAdblockDomTraverser.cpp ('K') | « Shared/PluginSystem.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Shared/PluginWbPassThrough.cpp
===================================================================
--- a/Shared/PluginWbPassThrough.cpp
+++ b/Shared/PluginWbPassThrough.cpp
@@ -116,25 +116,6 @@
isBlocked = true;
DEBUG_BLOCKER("Blocker::Blocking Http-request:" + src);
-
- CPluginSettings* settings = CPluginSettings::GetInstance();
- //is plugin registered
- if (!settings->GetBool(SETTING_PLUGIN_REGISTRATION, false))
- {
- //is the limit exceeded?
- if ((settings->GetValue(SETTING_PLUGIN_ADBLOCKCOUNT, 0) >= settings->GetValue(SETTING_PLUGIN_ADBLOCKLIMIT, 0))
- && (settings->GetValue(SETTING_PLUGIN_ADBLOCKLIMIT, 0) > 0))
- {
- return false;
- }
-
- else
- {
- //Increment blocked ads counter if not registered and not yet exceeded the adblocklimit
- settings->SetValue(SETTING_PLUGIN_ADBLOCKCOUNT, settings->GetValue(SETTING_PLUGIN_ADBLOCKCOUNT, 0) + 1);
- settings->Write();
- }
- }
}
#ifdef ENABLE_DEBUG_RESULT_IGNORED
else
« AdBlocker/SimpleAdblockDomTraverser.cpp ('K') | « Shared/PluginSystem.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld