summaryrefslogtreecommitdiff
path: root/chromium/extensions/common/manifest.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/common/manifest.h')
-rw-r--r--chromium/extensions/common/manifest.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/extensions/common/manifest.h b/chromium/extensions/common/manifest.h
index 5455cc6a7ac..f21713ad7dd 100644
--- a/chromium/extensions/common/manifest.h
+++ b/chromium/extensions/common/manifest.h
@@ -110,6 +110,10 @@ class Manifest {
return location == COMPONENT || location == EXTERNAL_COMPONENT;
}
+ static inline bool IsValidLocation(Location location) {
+ return location > INVALID_LOCATION && location < NUM_LOCATIONS;
+ }
+
// Unpacked extensions start off with file access since they are a developer
// feature.
static inline bool ShouldAlwaysAllowFileAccess(Location location) {