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

Unified Diff: chrome/common/extensions/extension.h

Issue 9960087: Revert 13676 - Revert 131665 - Add a preference for why an extension is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 28b005e2e00ec479bddc225916e6b5ee9ac70f0f..9a5d575ec818724084b87f29f534b83f3ba8a07e 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -87,6 +87,15 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
NUM_STATES
};
+ // Used to record the reason an extension was disabled.
+ enum DisableReason {
+ DISABLE_UNKNOWN,
+ DISABLE_USER_ACTION,
+ DISABLE_PERMISSIONS_INCREASE,
+ DISABLE_RELOAD,
+ DISABLE_LAST, // Not used.
+ };
+
enum InstallType {
INSTALL_ERROR,
DOWNGRADE,

Powered by Google App Engine
This is Rietveld 408576698