diff options
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 933c47c..c24cb21 100644 --- a/extensions/common/extension.h +++ b/extensions/common/extension.h @@ -170,6 +170,10 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // also installed by Default (i.e. WAS_INSTALLED_BY_DEFAULT is also true). WAS_INSTALLED_BY_OEM = 1 << 10, + // |WAS_INSTALLED_BY_CUSTODIAN| means this extension was installed by the + // custodian of a supervised user. + WAS_INSTALLED_BY_CUSTODIAN = 1 << 11, + // When adding new flags, make sure to update kInitFromValueFlagBits. }; @@ -334,6 +338,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> { bool was_installed_by_oem() const { return (creation_flags_ & WAS_INSTALLED_BY_OEM) != 0; } + bool was_installed_by_custodian() const { + return (creation_flags_ & WAS_INSTALLED_BY_CUSTODIAN) != 0; + } // App-related. bool is_app() const; |