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

Unified Diff: lib/filterStorage.js

Issue 6337686776315904: Issue 394 - hit statistics tool data collection (Closed)
Patch Set: Rebase to changeset: 4095 Created Dec. 15, 2015, 6:09 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: lib/filterStorage.js
===================================================================
--- a/lib/filterStorage.js
+++ b/lib/filterStorage.js
@@ -29,6 +29,7 @@
let {Subscription, SpecialSubscription, ExternalSubscription} = require("subscriptionClasses");
let {FilterNotifier} = require("filterNotifier");
let {Utils} = require("utils");
+let {FilterHits} = require("filterHits");
/**
* Version number of the filter storage file format.
@@ -323,14 +324,17 @@
/**
* Increases the hit count for a filter by one
* @param {Filter} filter
+ * @param {String} hostname of top window where the match originated in
*/
- increaseHitCount: function(filter)
+ increaseHitCount: function(filter, hostanme)
Wladimir Palant 2016/02/15 12:25:41 Typo: hostname
saroyanm 2016/02/19 17:38:12 Done.
{
if (!Prefs.savestats || !(filter instanceof ActiveFilter))
return;
filter.hitCount++;
filter.lastHit = Date.now();
+ if (Prefs.sendstats)
+ FilterHits.increaseFilterHits(filter, hostanme);
},
/**

Powered by Google App Engine
This is Rietveld