Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / admin_policy.cc
index d961da1..574deff 100644 (file)
@@ -7,7 +7,7 @@
 #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 {
@@ -15,6 +15,11 @@ 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());