summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension.h
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 21:45:24 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 21:45:24 +0000
commitef5a9996001da6ce442245935b9141f0d1d1e086 (patch)
tree1a4d40d4b548484c2174873ac16f153ce73a1087 /extensions/common/extension.h
parent4d166378f46ed1f4a00923250c60674527ac7d77 (diff)
downloadchromium_src-ef5a9996001da6ce442245935b9141f0d1d1e086.zip
chromium_src-ef5a9996001da6ce442245935b9141f0d1d1e086.tar.gz
chromium_src-ef5a9996001da6ce442245935b9141f0d1d1e086.tar.bz2
Additional metrics for disabled extensions and content verification
BUG=396319 Review URL: https://codereview.chromium.org/412003003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r--extensions/common/extension.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h
index 007faad..64241d2 100644
--- a/extensions/common/extension.h
+++ b/extensions/common/extension.h
@@ -77,6 +77,10 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
DEPRECATED_DISABLE_LAST, // Not used.
};
+ // Reasons an extension may be disabled. These are used in histograms, so do
+ // not remove/reorder entries - only add at the end just before
+ // DISABLE_REASON_LAST (and update the shift value for it). Also remember to
+ // update the enum listing in tools/metrics/histograms.xml.
enum DisableReason {
DISABLE_NONE = 0,
DISABLE_USER_ACTION = 1 << 0,
@@ -91,7 +95,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// the install.
DISABLE_GREYLIST = 1 << 9,
DISABLE_CORRUPTED = 1 << 10,
- DISABLE_REMOTE_INSTALL = 1 << 11
+ DISABLE_REMOTE_INSTALL = 1 << 11,
+ DISABLE_REASON_LAST = 1 << 12, // This should always be the last value
};
// A base class for parsed manifest data that APIs want to store on