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

Unified Diff: tools/json_schema_compiler/schema_bundle_generator.py

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added more testing for event compilation. Created 8 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
Index: tools/json_schema_compiler/schema_bundle_generator.py
diff --git a/tools/json_schema_compiler/schema_bundle_generator.py b/tools/json_schema_compiler/schema_bundle_generator.py
index 21e453cfb90ac27a2b36ce17bec4feead8cf77a6..99de4fd5ce8ca081271003b060878092ed2e944f 100644
--- a/tools/json_schema_compiler/schema_bundle_generator.py
+++ b/tools/json_schema_compiler/schema_bundle_generator.py
@@ -78,15 +78,14 @@ class SchemaBundleGenerator(object):
c.Append("public:")
c.Sblock("static void RegisterAll(ExtensionFunctionRegistry* registry) {")
for namespace in self._model.namespaces.values():
+ namespace_name = self.CapitalizeFirstLetter(namespace.name.replace(
+ "experimental.", ""))
for function in namespace.functions.values():
if function.nocompile:
continue
- namespace_name = self.CapitalizeFirstLetter(namespace.name.replace(
- "experimental.", ""))
function_name = namespace_name + self.CapitalizeFirstLetter(
function.name)
- c.Append("registry->RegisterFunction<%sFunction>();" % (
- function_name))
+ c.Append("registry->RegisterFunction<%sFunction>();" % (function_name))
c.Eblock("}")
c.Eblock("};")
c.Append()

Powered by Google App Engine
This is Rietveld 408576698