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

Unified Diff: lib/uninstall.js

Issue 29336812: Issue 3649 - Group the notificationDownloadCount (Closed)
Patch Set: Created Feb. 22, 2016, 5:13 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/uninstall.js
diff --git a/lib/uninstall.js b/lib/uninstall.js
index 3872e1cde76860e697cb24fb44005e182ddbfeef..0c8e54c81bf6683706faf8c1f32b513cf5d57740 100644
--- a/lib/uninstall.js
+++ b/lib/uninstall.js
@@ -30,6 +30,21 @@ function setUninstallURL()
search.push(key + "=" + encodeURIComponent(info[key]));
let downlCount = Prefs.notificationdata.downloadCount || 0;
+
+ if (downlCount > 4)
+ {
+ if (downlCount < 8)
+ downlCount = "5-7";
+ else if (downlCount < 30)
+ downlCount = "8-29";
+ else if (downlCount < 90)
+ downlCount = "30-89";
+ else if (downlCount < 180)
+ downlCount = "90-179";
+ else
+ downlCount = "180+";
+ }
+
search.push("notificationDownloadCount=" + encodeURIComponent(downlCount));
chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" +
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld