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

Unified Diff: lib/filterListener.js

Issue 29336735: Issue 394 - hit statistics tool data collection (core) (Closed)
Patch Set: Created Feb. 19, 2016, 5:26 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 | « no previous file | lib/filterStorage.js » ('j') | lib/filterStorage.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterListener.js
===================================================================
--- a/lib/filterListener.js
+++ b/lib/filterListener.js
@@ -30,6 +30,7 @@
let {ActiveFilter, RegExpFilter, ElemHideBase, CSSPropertyFilter} =
require("filterClasses");
let {Prefs} = require("prefs");
+let {FilterHits} = require("filterHits");
Wladimir Palant 2016/02/29 14:40:30 This needs to be included conditionally - this fil
saroyanm 2016/03/18 18:24:47 Done.
/**
* Value of the FilterListener.batchMode property.
@@ -94,6 +95,7 @@
if (topic == "browser:purge-session-history" && Prefs.clearStatsOnHistoryPurge)
{
FilterStorage.resetHitCounts();
+ FilterHits.resetFilterHits();
FilterListener.setDirty(0); // Force saving to disk
Prefs.recentReports = [];
« no previous file with comments | « no previous file | lib/filterStorage.js » ('j') | lib/filterStorage.js » ('J')

Powered by Google App Engine
This is Rietveld