summaryrefslogtreecommitdiffstats
path: root/extensions/common/manifest.h
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/manifest.h')
-rw-r--r--extensions/common/manifest.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/extensions/common/manifest.h b/extensions/common/manifest.h
index 8f4c3c7..a50e724 100644
--- a/extensions/common/manifest.h
+++ b/extensions/common/manifest.h
@@ -96,8 +96,13 @@ class Manifest {
// policy.
static inline bool IsPolicyLocation(Location location) {
return location == EXTERNAL_POLICY ||
- location == EXTERNAL_POLICY_DOWNLOAD ||
- location == EXTERNAL_COMPONENT;
+ location == EXTERNAL_POLICY_DOWNLOAD;
+ }
+
+ // Whether the |location| is an extension intended to be an internal part of
+ // Chrome.
+ static inline bool IsComponentLocation(Location location) {
+ return location == COMPONENT || location == EXTERNAL_COMPONENT;
}
// Unpacked extensions start off with file access since they are a developer