Index: chrome/common/extensions/manifest_handlers/extension_action_handler.cc |
diff --git a/chrome/common/extensions/manifest_handlers/extension_action_handler.cc b/chrome/common/extensions/manifest_handlers/extension_action_handler.cc |
index a976b004387333bbf8e982bcb3cebfd30ea889ec..1177836aaa674baf0dfcf4272b95009c63cd44f3 100644 |
--- a/chrome/common/extensions/manifest_handlers/extension_action_handler.cc |
+++ b/chrome/common/extensions/manifest_handlers/extension_action_handler.cc |
@@ -61,8 +61,9 @@ bool ExtensionActionHandler::Parse(Extension* extension, |
} else { // No key, used for synthesizing an action for extensions with none. |
if (!FeatureSwitch::extension_action_redesign()->IsEnabled()) |
return true; // Do nothing if the switch is off. |
- if (Manifest::IsComponentLocation(extension->location())) |
- return true; // Don't synthesize actions for component extensions. |
+ if (Manifest::IsComponentLocation(extension->location()) || |
+ Manifest::IsPolicyLocation(extension->location())) |
+ return true; // Don't synthesize actions for component/policy extensions. |
if (extension->manifest()->HasKey( |
manifest_keys::kSynthesizeExtensionAction)) { |
*error = base::ASCIIToUTF16(base::StringPrintf( |