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

Unified Diff: tools/json_schema_compiler/idl_schema.py

Issue 15091002: Lazily load API schemas from resource files and convert all APIs to features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos tests Created 7 years, 6 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 | « tools/json_schema_compiler/cpp_bundle_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/idl_schema.py
diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
index 2745ceafbc781880e142b202c2bc3ecd20c28b84..519ae56e5a8b819b99e06d347f9bc94c347e77aa 100644
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -309,8 +309,7 @@ class Namespace(object):
dictionary that the JSON schema compiler expects to see.
'''
- def __init__(self, namespace_node, nodoc=False, permissions=None,
- internal=False):
+ def __init__(self, namespace_node, nodoc=False, internal=False):
self.namespace = namespace_node
self.nodoc = nodoc
self.internal = internal
@@ -318,7 +317,6 @@ class Namespace(object):
self.functions = []
self.types = []
self.callbacks = OrderedDict()
- self.permissions = permissions or []
def process(self):
for node in self.namespace.children:
@@ -337,7 +335,6 @@ class Namespace(object):
sys.exit('Did not process %s %s' % (node.cls, node))
return {'namespace': self.namespace.GetName(),
'nodoc': self.nodoc,
- 'documentation_permissions_required': self.permissions,
'types': self.types,
'functions': self.functions,
'internal': self.internal,
@@ -364,10 +361,9 @@ class IDLSchema(object):
namespaces = []
nodoc = False
internal = False
- permissions = None
for node in self.idl:
if node.cls == 'Namespace':
- namespace = Namespace(node, nodoc, permissions, internal)
+ namespace = Namespace(node, nodoc, internal)
namespaces.append(namespace.process())
nodoc = False
internal = False
@@ -378,8 +374,6 @@ class IDLSchema(object):
elif node.cls == 'ExtAttribute':
if node.name == 'nodoc':
nodoc = bool(node.value)
- elif node.name == 'permissions':
- permission = node.value.split(',')
elif node.name == 'internal':
internal = bool(node.value)
else:
« no previous file with comments | « tools/json_schema_compiler/cpp_bundle_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698