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

Unified Diff: chrome/common/extensions/api/push_messaging.idl

Issue 476883003: Add deprecation message in chrome.pushMessaging API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating the API removal milestone Created 6 years, 4 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/common/extensions/api/push_messaging.idl
diff --git a/chrome/common/extensions/api/push_messaging.idl b/chrome/common/extensions/api/push_messaging.idl
index 0f6917542248db1a813fd7b91b7a668a333b924d..6ebc580a6be9b15b82caf917622aad66131b92c5 100644
--- a/chrome/common/extensions/api/push_messaging.idl
+++ b/chrome/common/extensions/api/push_messaging.idl
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Use <code>chrome.pushMessaging</code> to enable apps and extensions to
-// receive message data sent through
+// The <code>chrome.pushMessaging</code> API is deprecated since Chrome 38,
+// and will no longer be supported in Chrome 41.
+// Switch to <code>$(ref:gcm chrome.gcm)</code> to take advantage of
// <a href="cloudMessaging.html">Google Cloud Messaging</a>.
+[deprecated="Use $(ref:gcm chrome.gcm) API"]
namespace pushMessaging {
dictionary Message {
@@ -31,6 +33,7 @@ namespace pushMessaging {
// to trigger push messages back to the app or extension.
// If the interactive flag is set, we will ask the user to log in
// when they are not already logged in.
+ [deprecated="Use $(ref:gcm chrome.gcm) API"]
static void getChannelId(optional boolean interactive,
ChannelIdCallback callback);
};
@@ -38,6 +41,7 @@ namespace pushMessaging {
interface Events {
// Fired when a push message has been received.
// |message| : The details associated with the message.
+ [deprecated="Use $(ref:gcm chrome.gcm) API"]
static void onMessage(Message message);
};
};

Powered by Google App Engine
This is Rietveld 408576698