Chromium Code Reviews| 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)) |
|
not at google - send to devlin
2012/07/03 14:21:39
You can leave out the surrounding () in %(function
Matt Tytel
2012/07/11 02:08:50
Done.
|
| c.Eblock("}") |
| c.Eblock("};") |
| c.Append() |