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

Side by Side Diff: tools/json_schema_compiler/feature_compiler.py

Issue 2601803003: Introduce kiosk.autolaunched feature session type (Closed)
Patch Set: . Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « extensions/common/permissions/usb_device_permission_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import argparse 5 import argparse
6 import copy 6 import copy
7 from datetime import datetime 7 from datetime import datetime
8 from functools import partial 8 from functools import partial
9 import os 9 import os
10 import re 10 import re
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 'mac': 'Feature::MACOSX_PLATFORM', 194 'mac': 'Feature::MACOSX_PLATFORM',
195 'win': 'Feature::WIN_PLATFORM', 195 'win': 'Feature::WIN_PLATFORM',
196 } 196 }
197 } 197 }
198 }, 198 },
199 'session_types': { 199 'session_types': {
200 list: { 200 list: {
201 'enum_map': { 201 'enum_map': {
202 'regular': 'FeatureSessionType::REGULAR', 202 'regular': 'FeatureSessionType::REGULAR',
203 'kiosk': 'FeatureSessionType::KIOSK', 203 'kiosk': 'FeatureSessionType::KIOSK',
204 'kiosk.autolaunched': 'FeatureSessionType::AUTOLAUNCHED_KIOSK',
204 } 205 }
205 } 206 }
206 }, 207 },
207 'source': { 208 'source': {
208 unicode: {}, 209 unicode: {},
209 'shared': True 210 'shared': True
210 }, 211 },
211 'whitelist': { 212 'whitelist': {
212 list: {'subtype': unicode} 213 list: {'subtype': unicode}
213 }, 214 },
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 help='The source features.json files') 776 help='The source features.json files')
776 args = parser.parse_args() 777 args = parser.parse_args()
777 if args.feature_type not in FEATURE_TYPES: 778 if args.feature_type not in FEATURE_TYPES:
778 raise NameError('Unknown feature type: %s' % args.feature_type) 779 raise NameError('Unknown feature type: %s' % args.feature_type)
779 c = FeatureCompiler(args.chrome_root, args.source_files, args.feature_type, 780 c = FeatureCompiler(args.chrome_root, args.source_files, args.feature_type,
780 args.provider_class, args.out_root, 781 args.provider_class, args.out_root,
781 args.out_base_filename) 782 args.out_base_filename)
782 c.Load() 783 c.Load()
783 c.Compile() 784 c.Compile()
784 c.Write() 785 c.Write()
OLDNEW
« no previous file with comments | « extensions/common/permissions/usb_device_permission_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698