diff options
author | binjin <binjin@chromium.org> | 2014-12-04 08:44:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-04 16:44:49 +0000 |
commit | 8e3d01889d55c01618e575d0b8271a24a50cb5c2 (patch) | |
tree | e3efcce7e0d8e7478e7db33d5303f9fcf7439540 /extensions/common/extension.h | |
parent | 0bbaf06a7ce157ad8d9955d9fbb3316e58da9c6f (diff) | |
download | chromium_src-8e3d01889d55c01618e575d0b8271a24a50cb5c2.zip chromium_src-8e3d01889d55c01618e575d0b8271a24a50cb5c2.tar.gz chromium_src-8e3d01889d55c01618e575d0b8271a24a50cb5c2.tar.bz2 |
Add minimum version to extension management
This CL adds 'minimum_version' setting to ExtensionManagement. Allows policy to specify the minimum version required for the specified extension to be enabled.
This CL adds another Extension::DisableReason DISABLE_UPDATE_REQUIRED_BY_POLICY, and using it to track extensions being disabled by minimum version settings, and re-enable them if necessary.
BUG=177351
Review URL: https://codereview.chromium.org/706623004
Cr-Commit-Position: refs/heads/master@{#306834}
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r-- | extensions/common/extension.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h index d845332..1d1ab1a 100644 --- a/extensions/common/extension.h +++ b/extensions/common/extension.h @@ -105,7 +105,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // disabled to prevent activity. DISABLE_EXTERNAL_EXTENSION = 1 << 13, // External extensions might be // disabled for user prompting. - DISABLE_REASON_LAST = 1 << 14, // This should always be the last value + DISABLE_UPDATE_REQUIRED_BY_POLICY = 1 << 14, // Doesn't meet minimum + // version requirement. + DISABLE_REASON_LAST = 1 << 15, // This should always be the last value }; // A base class for parsed manifest data that APIs want to store on |