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

Unified Diff: chrome/common/extensions/api/webstore/webstore_api_constants.cc

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/webstore_api_constants.cc
diff --git a/chrome/common/extensions/api/webstore/webstore_api_constants.cc b/chrome/common/extensions/api/webstore/webstore_api_constants.cc
index e766bce69a7e99f7daa0bd0d439dfc4bb822b667..7277d477df534268318ce21cbd4bbdc6c7f71375 100644
--- a/chrome/common/extensions/api/webstore/webstore_api_constants.cc
+++ b/chrome/common/extensions/api/webstore/webstore_api_constants.cc
@@ -8,6 +8,29 @@ namespace extensions {
namespace api {
namespace webstore {
+// IMPORTANT: Keep this list in sync with both the definition in
+// chrome/common/extensions/api/webstore.json and
+// chrome/common/extensions/webstore_install_result.h!
not at google - send to devlin 2014/07/10 20:54:27 could you add a unit test for chrome/common/extens
Devlin 2014/07/10 22:11:43 As discussed offline, a compile assert covers as m
+const char* kInstallResultCodes[] = {
+ "success",
+ "otherError", // This corresponds to UNKNOWN_ERROR, but "other" sounds a lot
not at google - send to devlin 2014/07/10 20:54:27 I actually prefer "unknown" :)
Devlin 2014/07/10 21:16:59 Typically, I do too. But this is special, because
not at google - send to devlin 2014/07/10 21:18:38 ah :) well can you rename the enum then?
Devlin 2014/07/10 22:11:43 Yep. :)
+ // better.
+ "aborted",
+ "notPermitted",
+ "invalidId",
+ "webstoreRequestError",
+ "invalidWebstoreResponse",
+ "invalidManifest",
+ "iconError",
+ "userCancelled",
+ "blacklisted",
+ "missingDependencies",
+ "requirementViolations",
+ "blockedByPolicy",
+ "launchFeatureDisabled",
+ "launchUnsupportedExtensionType",
+};
+
// The "downloading" stage begins when the installer starts downloading modules
// for the extension.
const char kInstallStageDownloading[] = "downloading";

Powered by Google App Engine
This is Rietveld 408576698