diff options
author | calamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 05:34:18 +0000 |
---|---|---|
committer | calamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 05:34:18 +0000 |
commit | f9c5d39d43436e9e92a4725bfba0f74d1501c0bb (patch) | |
tree | b4e949c8be0701516bd24f5f622cab51ff7d72a7 /extensions/common/extension.h | |
parent | 5b9b2db527ce2bf6dbaf18fbd0d209caa146a9b4 (diff) | |
download | chromium_src-f9c5d39d43436e9e92a4725bfba0f74d1501c0bb.zip chromium_src-f9c5d39d43436e9e92a4725bfba0f74d1501c0bb.tar.gz chromium_src-f9c5d39d43436e9e92a4725bfba0f74d1501c0bb.tar.bz2 |
Add UMA logging of extension creation flags.
This CL adds an Extensions.LoadCreationFlags UMA histogram which logs an
aggregate of a user's extension's flags.
BUG=None
Review URL: https://codereview.chromium.org/240613004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r-- | extensions/common/extension.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h index 10df63c..2d7b2aa 100644 --- a/extensions/common/extension.h +++ b/extensions/common/extension.h @@ -118,6 +118,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> { virtual ~ManifestData() {} }; + // Do not change the order of entries or remove entries in this list + // as this is used in UMA_HISTOGRAM_ENUMERATIONs about extensions. enum InitFromValueFlags { NO_FLAGS = 0, @@ -170,8 +172,13 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // be placed in a special OEM folder in the App Launcher. Note: OEM apps are // also installed by Default (i.e. WAS_INSTALLED_BY_DEFAULT is also true). WAS_INSTALLED_BY_OEM = 1 << 10, + + // When adding new flags, make sure to update kInitFromValueFlagBits. }; + // This is the highest bit index of the flags defined above. + static const int kInitFromValueFlagBits; + static scoped_refptr<Extension> Create(const base::FilePath& path, Manifest::Location location, const base::DictionaryValue& value, |