Chromium Code Reviews| Index: chrome/common/extensions/api/extension_api.json |
| diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json |
| index 30d2d0c81de47fd8c5c5917ef4232fa099086bff..7f5e008f9f3ffd2da1894b2355cb63cd74aa142a 100644 |
| --- a/chrome/common/extensions/api/extension_api.json |
| +++ b/chrome/common/extensions/api/extension_api.json |
| @@ -9110,7 +9110,24 @@ |
| { |
| "namespace": "systemPrivate", |
| "nodoc": true, |
| - "types": [], |
| + "types": [ |
| + { |
| + "id": "UpdateStatus", |
| + "type": "object", |
| + "description": "Information about the system update.", |
| + "properties": { |
| + "state": { |
| + "type": "string", |
| + "enum": ["NotAvailable", "Updating", "NeedReboot"], |
|
Aaron Boodman
2011/12/14 07:33:28
Suggest "NeedRestart" (desktop chrome doesn't rebo
hashimoto
2011/12/14 08:14:33
Sounds good.
Done.
|
| + "description": "State of system update. NotAvailable when there is no available update or the update system is in error state, Updating when a system update is in progress, NeedReboot when a system update is finished and reboot is needed." |
| + }, |
| + "download_progress": { |
| + "type": "number", |
| + "description": "Value between 0 and 1 describing the progress of system update download. This value will be set to 0 when |state| is NotAvailable, 1 when NeedReboot." |
| + } |
| + } |
| + } |
| + ], |
| "functions": [ |
| { |
| "name": "getIncognitoModeAvailability", |
| @@ -9131,6 +9148,24 @@ |
| ] |
| } |
| ] |
| + }, |
| + { |
| + "name": "getUpdateStatus", |
| + "type": "function", |
| + "description": "Gets information about the system update.", |
| + "parameters": [ |
| + { |
| + "type": "function", |
| + "name": "callback", |
| + "parameters": [ |
| + { |
| + "$ref": "UpdateStatus", |
| + "name": "status", |
| + "description": "Details of the system update" |
| + } |
| + ] |
| + } |
| + ] |
| } |
| ] |
| } |