Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5762)

Unified Diff: chrome/test/data/extensions/background_app/background.js

Issue 1018643003: Removing chrome.pushMessaging API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates to documentation per kalman's comments Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/background_app/background.js
diff --git a/chrome/test/data/extensions/background_app/background.js b/chrome/test/data/extensions/background_app/background.js
index d373ae6855c8bf4cd4a5b0b63c0eaaed57095a25..fbd9366e1f6ea3a298607f9d01b90c291b92b8a5 100644
--- a/chrome/test/data/extensions/background_app/background.js
+++ b/chrome/test/data/extensions/background_app/background.js
@@ -22,18 +22,3 @@ chrome.runtime.onInstalled.addListener(function() {
chrome.runtime.onSuspend.addListener(function() {
console.log("Background App shutting down");
});
-
-// Register for push messages.
-// This should be called every time the Push Messaging App starts up.
-function setupPush() {
- chrome.pushMessaging.onMessage.addListener(messageCallback);
-
- // Ensure that adding the listener took effect.
- var listeners = chrome.pushMessaging.onMessage.hasListeners();
- console.log('registered listener for push messages ' + listeners);
-}
-
-// This callback receives the pushed message from the push server.
-function messageCallback(message) {
- console.log("push messaging callback seen");
-}
« no previous file with comments | « chrome/test/data/extensions/api_test/stubs_app/manifest.json ('k') | chrome/test/ext_auto/auto_provider/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698