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

Unified Diff: tools/json_schema_compiler/feature_compiler.py

Issue 2255613003: Introduce session type parameter to extension features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce session type parameter to extension features Created 4 years, 4 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
Index: tools/json_schema_compiler/feature_compiler.py
diff --git a/tools/json_schema_compiler/feature_compiler.py b/tools/json_schema_compiler/feature_compiler.py
index d28880220ec5ccfe3adc560cc9174b4b49afb717..173bc178ead431d3da7203d9b7c9ed8f3216b6fc 100644
--- a/tools/json_schema_compiler/feature_compiler.py
+++ b/tools/json_schema_compiler/feature_compiler.py
@@ -189,6 +189,14 @@ FEATURE_GRAMMAR = (
}
}
},
+ 'session_types': {
+ list: {
+ 'enum_map': {
+ 'regular': 'FeatureSessionType::REGULAR',
+ 'kiosk': 'FeatureSessionType::KIOSK',
+ }
+ }
+ },
'whitelist': {
list: {'subtype': unicode}
},

Powered by Google App Engine
This is Rietveld 408576698