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

Unified Diff: chrome/content/ui/sendReport.js

Issue 5410618009976832: issue #690 - don't consider special subscriptions when complaining about high subscription count (Closed)
Patch Set: Created July 28, 2014, 9:41 a.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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/sendReport.js
===================================================================
--- a/chrome/content/ui/sendReport.js
+++ b/chrome/content/ui/sendReport.js
@@ -733,6 +733,14 @@
type: null,
outdated: null,
needUpdate: null,
+
+ subscriptionFilter: function(s)
+ {
+ if (s instanceof DownloadableSubscription)
+ return subscriptionsDataSource.subscriptionFilter(s);
+ else
+ return false;
+ },
collectData: function(wnd, windowURI, callback)
{
@@ -744,7 +752,7 @@
this.outdated = [];
this.needUpdate = [];
- let subscriptions = FilterStorage.subscriptions.filter(issuesDataSource.subscriptionFilter);
+ let subscriptions = FilterStorage.subscriptions.filter(subscriptionUpdateDataSource.subscriptionFilter);
Wladimir Palant 2014/07/30 05:44:35 this.subscriptionFilter please.
saroyanm 2014/07/30 06:11:58 Oops.
for (let i = 0; i < subscriptions.length; i++)
{
let lastSuccess = subscriptions[i].lastSuccess;
@@ -884,7 +892,8 @@
subscriptionFilter: function(s)
{
- if (s instanceof DownloadableSubscription)
+ if (s instanceof DownloadableSubscription && s.url != Prefs.subscriptions_exceptionsurl
+ && s.url != Prefs.subscriptions_antiadblockurl)
Wladimir Palant 2014/07/30 05:44:35 Please try to keep the lines shorter than 80 chara
saroyanm 2014/07/30 06:11:58 Thanks, done.
return subscriptionsDataSource.subscriptionFilter(s);
else
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld