| Index: chrome/browser/extensions/api/push_messaging/push_messaging_api.cc
|
| diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc b/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc
|
| index c579e4473072de8ea4917edc04153f2cd443edcb..5c0a185f8099dbade98f6357d1696eeda0809fe7 100644
|
| --- a/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc
|
| +++ b/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc
|
| @@ -48,7 +48,9 @@ const char kUserAccessTokenFailure[] =
|
| const char kAPINotAvailableForUser[] =
|
| "The API is not available for this user.";
|
| const int kObfuscatedGaiaIdTimeoutInDays = 30;
|
| -}
|
| +const char kDeprecationMessage[] =
|
| + "The chrome.pushMessaging API is deprecated. Use chrome.gcm API instead.";
|
| +} // namespace
|
|
|
| namespace glue = api::push_messaging;
|
|
|
| @@ -94,6 +96,9 @@ PushMessagingGetChannelIdFunction::PushMessagingGetChannelIdFunction()
|
| PushMessagingGetChannelIdFunction::~PushMessagingGetChannelIdFunction() {}
|
|
|
| bool PushMessagingGetChannelIdFunction::RunAsync() {
|
| + // Issue a deprecation message.
|
| + WriteToConsole(content::CONSOLE_MESSAGE_LEVEL_WARNING, kDeprecationMessage);
|
| +
|
| // Fetch the function arguments.
|
| scoped_ptr<glue::GetChannelId::Params> params(
|
| glue::GetChannelId::Params::Create(*args_));
|
|
|