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

Unified Diff: lib/uninstall.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Update adblockplusui dependency Created Oct. 17, 2017, 1:02 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/subscriptionInit.js ('k') | lib/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/uninstall.js
===================================================================
--- a/lib/uninstall.js
+++ b/lib/uninstall.js
@@ -43,20 +43,20 @@
else if (downlCount < 180)
downlCount = "90-179";
else
downlCount = "180+";
}
search.push("notificationDownloadCount=" + encodeURIComponent(downlCount));
- chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" +
- search.join("&"));
+ browser.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" +
+ search.join("&"));
}
// The uninstall URL contains the notification download count as a parameter,
// therefore we must wait for preferences to be loaded before generating the
// URL and we need to re-generate it each time the notification data changes.
-if ("setUninstallURL" in chrome.runtime)
+if ("setUninstallURL" in browser.runtime)
{
Prefs.untilLoaded.then(setUninstallURL);
Prefs.on("notificationdata", setUninstallURL);
}
« no previous file with comments | « lib/subscriptionInit.js ('k') | lib/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld