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

Unified Diff: lib/contentPolicy.js

Issue 29329810: Issue 3274 - Unbreak collecting window stats (Closed)
Patch Set: Rebased and improved JSDoc comments Created Nov. 12, 2015, 3:08 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
« no previous file with comments | « lib/child/requestNotifier.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/contentPolicy.js
===================================================================
--- a/lib/contentPolicy.js
+++ b/lib/contentPolicy.js
@@ -107,17 +107,18 @@ var Policy = exports.Policy =
let hits = [];
function addHit(frameIndex, contentType, docDomain, thirdParty, location, filter)
{
if (filter && !isPrivate)
FilterStorage.increaseHitCount(filter);
hits.push({
frameIndex, contentType, docDomain, thirdParty, location,
- filter: filter ? filter.text : null
+ filter: filter ? filter.text : null,
+ filterType: filter ? filter.type : null
});
}
function response(allow, collapse)
{
return {allow, collapse, hits};
}
« no previous file with comments | « lib/child/requestNotifier.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld