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

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

Issue 384823002: Introduce a stable set of errors for inline install (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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/webstore.json
diff --git a/chrome/common/extensions/api/webstore.json b/chrome/common/extensions/api/webstore.json
index 38d6de3867c759d05a45a0b995e281dc5e979ce9..f4ca13a1558876e4f0683926a98b932db38653af 100644
--- a/chrome/common/extensions/api/webstore.json
+++ b/chrome/common/extensions/api/webstore.json
@@ -12,6 +12,12 @@
"type": "string",
"enum": ["installing", "downloading"],
"description": "Enum used to indicate the stage of the installation process. 'downloading' indicates that the necessary files are being downloaded, and 'installing' indicates that the files are downloaded and are being actively installed."
+ },
+ {
not at google - send to devlin 2014/07/10 20:54:27 Add a comment in here (we support comments in the
Devlin 2014/07/10 22:11:43 Ah, forgot we allowed comments in our json. Done.
+ "id": "ErrorCode",
+ "type": "string",
+ "enum": [{"description": "An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.", "name": "otherError"}, {"description": "The operation was aborted as the requestor is no longer alive.", "name": "aborted"}, {"description": "The installation is not permitted.", "name": "notPermitted"}, {"description": "Invalid Chrome Web Store item ID.", "name": "invalidId"}, {"description": "Failed to retrieve extension metadata from the Web Store.", "name": "webstoreRequestError"}, {"description": "The extension metadata retrieved from the Web Store was invalid.", "name": "invalidWebstoreResponse"}, {"description": "An error occurred while parsing the extension manifest retrieved from the Web Store.", "name": "invalidManifest"}, {"description": "Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.", "name": "iconError"}, {"description": "The user canceled the operation.", "name": "userCanceled"}, {"description": "The extension is blacklisted.", "name": "blacklisted"}, {"description": "Unsatisfied dependencies, such as shared modules.", "name": "missingDependencies"}, {"description": "Unsatisfied requirements, such as webgl.", "name": "requirementViolations"}, {"description": "The extension is blocked by management policies.", "name": "blockedByPolicy"}, {"description": "The launch feature is not available.", "name": "launchFeatureDisabled"}, {"description": "The launch feature is not supported for the extension type.", "name": "launchUnsupportedExtensionType"}],
not at google - send to devlin 2014/07/10 20:54:27 aand this needs a format (as discussed)
Devlin 2014/07/10 22:11:43 Done.
+ "description": "Enum of the possible install results, including error codes sent back in the event that an inline installation has failed."
}
], // types
"events": [
@@ -67,6 +73,12 @@
"name": "error",
"type": "string",
"description": "The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back."
+ },
+ {
+ "name": "errorCode",
+ "$ref": "ErrorCode",
+ "optional": "true",
+ "description": "The error code from the stable set of possible errors."
}
],
"description": "This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site."

Powered by Google App Engine
This is Rietveld 408576698