| Index: chrome/common/extensions/extension.h
|
| ===================================================================
|
| --- chrome/common/extensions/extension.h (revision 136836)
|
| +++ chrome/common/extensions/extension.h (working copy)
|
| @@ -300,12 +300,14 @@
|
| IsExternalLocation(location);
|
| }
|
|
|
| - // Whether extensions with |location| can be uninstalled or not. Policy
|
| - // controlled extensions are silently auto-installed and updated, and cannot
|
| - // be disabled by the user. The same applies for internal components.
|
| - static inline bool UserMayDisable(Location location) {
|
| - return location != Extension::EXTERNAL_POLICY_DOWNLOAD &&
|
| - location != Extension::COMPONENT;
|
| + // Policy-required extensions are silently auto-installed and updated, and
|
| + // cannot be disabled or modified by the user in any way. The same applies
|
| + // to internal components.
|
| + // This method is not generally called directly; instead, it is accessed
|
| + // through the ExtensionManagementPolicy held by the ExtensionService.
|
| + static inline bool IsRequired(Location location) {
|
| + return location == Extension::EXTERNAL_POLICY_DOWNLOAD ||
|
| + location == Extension::COMPONENT;
|
| }
|
|
|
| // Whether extensions with |location| should be loaded with strict
|
|
|