#include "base/strings/utf_string_conversions.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest.h"
-#include "grit/generated_resources.h"
+#include "grit/extensions_strings.h"
#include "ui/base/l10n/l10n_util.h"
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.
bool modifiable =
extension->location() != extensions::Manifest::COMPONENT &&
!extensions::Manifest::IsPolicyLocation(extension->location());