Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: extensions/common/manifest.h

Issue 2738553002: [Extensions] Log instances of invalid extensions being added (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/developer/generated_output/hpiknbiabeeppbpihjehijgoemciehgk.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/manifest.h
diff --git a/extensions/common/manifest.h b/extensions/common/manifest.h
index 5455cc6a7acb900c838d29bf844ce7b1fbca9869..f21713ad7dd6aeb328d924557f4821b2d0b6e9c6 100644
--- a/extensions/common/manifest.h
+++ b/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) {
« no previous file with comments | « chrome/test/data/extensions/api_test/developer/generated_output/hpiknbiabeeppbpihjehijgoemciehgk.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698