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

Unified Diff: lib/notificationShowRegistration.js

Issue 29317074: Issue 2693 - Update adblockplus dependency (Closed)
Patch Set: fix according to comments and update revision Created June 26, 2015, 2:19 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/notificationShowRegistration.js
diff --git a/lib/filterUpdateRegistration.js b/lib/notificationShowRegistration.js
similarity index 82%
copy from lib/filterUpdateRegistration.js
copy to lib/notificationShowRegistration.js
index 3e4bb66d951b9cb44dd219b47b60d2bc9ac71420..a7928dff345d2021ccef62dc9b8075958a68fbd8 100644
--- a/lib/filterUpdateRegistration.js
+++ b/lib/notificationShowRegistration.js
@@ -15,9 +15,9 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-let {FilterNotifier} = require("filterNotifier");
+let {Notification} = require("notification");
-FilterNotifier.addListener(function(action, item)
+Notification.addShowListener(function(notification)
{
- _triggerEvent("filterChange", action, item);
+ _triggerEvent("_showNotification", notification);
});

Powered by Google App Engine
This is Rietveld