Chromium Code Reviews| Index: extensions/browser/admin_policy.cc |
| diff --git a/extensions/browser/admin_policy.cc b/extensions/browser/admin_policy.cc |
| index cb948879aa7aea51d6d2b0e4fc564ed9a4129391..e2ecce259bf450b0752e0f6305a59bb82c6b5ada 100644 |
| --- a/extensions/browser/admin_policy.cc |
| +++ b/extensions/browser/admin_policy.cc |
| @@ -15,8 +15,13 @@ namespace { |
| bool ManagementPolicyImpl(const extensions::Extension* extension, |
| base::string16* error, |
| bool modifiable_value) { |
| + // Note that COMPONENT and EXTERNAL_COMPONENT are treated differently |
| + // below. EXTERNAL_COMPONENT extensions can be modified including |
| + // enabled, disabled, uninstalled while COMPONENT extensions cannot. |
| + // However, those options are only available for EXTERNAL_COMPONENT |
| + // extensions when the proper command line flag is passed. |
|
miket_OOO
2014/03/17 20:10:51
Great! Thanks.
|
| bool modifiable = |
| - !extensions::Manifest::IsComponentLocation(extension->location()) && |
| + extension->location() != extensions::Manifest::COMPONENT && |
| !extensions::Manifest::IsPolicyLocation(extension->location()); |
| // Some callers equate "no restriction" to true, others to false. |
| if (modifiable) |