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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 8747003: Add private system extension API to get system update status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for the case with no update on non-ChromeOS platforms Created 9 years 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/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 30d2d0c81de47fd8c5c5917ef4232fa099086bff..92269cadc560b6bb7d68dce9a0488b5b764805ad 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", "NeedRestart"],
+ "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, NeedRestart when a system update is finished and restart 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 NeedRestart."
+ }
+ }
+ }
+ ],
"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"
+ }
+ ]
+ }
+ ]
}
]
}

Powered by Google App Engine
This is Rietveld 408576698