diff options
author | rockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-16 07:58:08 +0000 |
---|---|---|
committer | rockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-16 07:59:34 +0000 |
commit | 2b6a58021dd8babb97b400afd724f87c4d785e0a (patch) | |
tree | 0c0319d97a24b988679b9e818c2ffbf6db0f1396 /extensions/common/extension.h | |
parent | c4844325d770084cf1ad2632f934dec2e5dda97f (diff) | |
download | chromium_src-2b6a58021dd8babb97b400afd724f87c4d785e0a.zip chromium_src-2b6a58021dd8babb97b400afd724f87c4d785e0a.tar.gz chromium_src-2b6a58021dd8babb97b400afd724f87c4d785e0a.tar.bz2 |
Track Windows registry-sideloaded extensions.
This adds a creation flag for extensions which tracks if they
were installed from a potentially untrusted source.
The flag is currently set for extensions which are installed
via the Windows registry from a CRX on the local filesystem.
No enforcement action is being taken yet and no additional metrics are being collected.
BUG=325469
Review URL: https://codereview.chromium.org/479513004
Cr-Commit-Position: refs/heads/master@{#290122}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r-- | extensions/common/extension.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h index 47f85f3..de0e2f5 100644 --- a/extensions/common/extension.h +++ b/extensions/common/extension.h @@ -166,6 +166,12 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // custodian of a supervised user. WAS_INSTALLED_BY_CUSTODIAN = 1 << 11, + // |MAY_BE_UNTRUSTED| indicates that this extension came from a potentially + // unsafe source (e.g., sideloaded from a local CRX file via the Windows + // registry). Such extensions may be subjected to additional constraints + // before they are fully installed and enabled. + MAY_BE_UNTRUSTED = 1 << 12, + // When adding new flags, make sure to update kInitFromValueFlagBits. }; |