| Index: chrome/common/extensions/api/gcm.json
|
| diff --git a/chrome/common/extensions/api/gcm.json b/chrome/common/extensions/api/gcm.json
|
| index 869138a73f0976e02bea6be6f9f1d126f22ea50c..1e5cd3de05dda50714d7a97b37095854cd7aac89 100644
|
| --- a/chrome/common/extensions/api/gcm.json
|
| +++ b/chrome/common/extensions/api/gcm.json
|
| @@ -16,25 +16,20 @@
|
| {
|
| "name": "register",
|
| "type": "function",
|
| - "description": "Registers the application with GCM. The registration ID will be returned by the <code>callback</code>. If <code>register</code> is called again with the same list of <code>senderIds</code>, the same registration ID will be returned.",
|
| + "description": "Registers the application with GCM. The registration ID will be returned by the <code>callback</code>.",
|
| "parameters": [
|
| {
|
| - "name": "senderIds",
|
| - "type": "array",
|
| - "items": {
|
| - "type": "string",
|
| - "minLength": 1
|
| - },
|
| - "minItems": 1,
|
| - "maxItems": 100,
|
| - "description": "A list of server IDs that are allowed to send messages to the application. It should contain at least one and no more than 100 sender IDs."
|
| + "name": "senderId",
|
| + "type": "string",
|
| + "minLength": 1,
|
| + "description": "A server ID of a sender that will be allowed to send messages to the application."
|
| },
|
| {
|
| "name": "callback",
|
| "type": "function",
|
| - "description": "Function called when registration completes. It should check $(ref:runtime.lastError) for error when <code>registrationId</code> is empty.",
|
| + "description": "Function called when registration completes. It should check $(ref:runtime.lastError) for error when <code>registrationId</code> is empty. If <code>register</code> is called again with the same <code>senderId</code>, the same registration ID will be returned.",
|
| "parameters": [
|
| - {
|
| + {
|
| "name": "registrationId",
|
| "type": "string",
|
| "description": "A registration ID assigned to the application by the GCM."
|
|
|