Chromium Code Reviews| Index: extensions/common/api/management.json |
| diff --git a/extensions/common/api/management.json b/extensions/common/api/management.json |
| index 42976387c939b4d0c86f8fb02e77b5e588736982..848cb96e9b569582378616063e828bc2e0a592d1 100644 |
| --- a/extensions/common/api/management.json |
| +++ b/extensions/common/api/management.json |
| @@ -23,6 +23,24 @@ |
| "description": "These are all possible app launch types." |
| }, |
| { |
| + "id": "ExtensionInfoDisabledReason", |
|
not at google - send to devlin
2015/04/03 17:04:38
I'd just have "ExtensionDisabledReason..." etc, no
Devlin
2015/04/03 19:38:51
Done.
|
| + "description": "A reason the item is disabled.", |
| + "type": "string", |
| + "enum": ["unknown", "permissions_increase"] |
| + }, |
| + { |
| + "id": "ExtensionInfoType", |
| + "description": "The type of this extension, app, or theme.", |
| + "type": "string", |
| + "enum": ["extension", "hosted_app", "packaged_app", "legacy_packaged_app", "theme"] |
| + }, |
| + { |
| + "id": "ExtensionInfoInstallType", |
| + "description": "How the extension was installed. One of<br><var>admin</var>: The extension was installed because of an administrative policy,<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via a .crx file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>other</var>: The extension was installed by other means.", |
| + "type": "string", |
| + "enum": ["admin", "development", "normal", "sideload", "other"] |
| + }, |
| + { |
| "id": "ExtensionInfo", |
| "description": "Information about an installed extension, app, or theme.", |
| "type": "object", |
| @@ -57,8 +75,7 @@ |
| }, |
| "disabledReason": { |
| "description": "A reason the item is disabled.", |
| - "type": "string", |
| - "enum": ["unknown", "permissions_increase"], |
| + "$ref": "ExtensionInfoDisabledReason", |
| "optional": true |
| }, |
| "isApp": { |
| @@ -68,8 +85,7 @@ |
| }, |
| "type": { |
| "description": "The type of this extension, app, or theme.", |
| - "type": "string", |
| - "enum": ["extension", "hosted_app", "packaged_app", "legacy_packaged_app", "theme"] |
| + "$ref": "ExtensionInfoType" |
| }, |
| "appLaunchUrl": { |
| "description": "The launch url (only present for apps).", |
| @@ -117,9 +133,8 @@ |
| } |
| }, |
| "installType": { |
| - "description": "How the extension was installed. One of<br><var>admin</var>: The extension was installed because of an administrative policy,<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via a .crx file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>other</var>: The extension was installed by other means.", |
| - "type": "string", |
| - "enum": ["admin", "development", "normal", "sideload", "other"] |
| + "description": "How the extension was installed.", |
| + "$ref": "ExtensionInfoInstallType" |
| }, |
| "launchType": { |
| "description": "The app launch type (only present for apps).", |