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

Unified Diff: tools/json_schema_compiler/compiler.py

Issue 12283025: JSON Compiler should convert the namespace value in lowerCamelCase to unix_name for the referenced … (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: JSON Compiler should convert the namespace value in lowerCamelCase to unix_name for the referenced … Created 7 years, 10 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 | « no previous file | tools/json_schema_compiler/cpp_type_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/compiler.py
===================================================================
--- tools/json_schema_compiler/compiler.py (revision 184218)
+++ tools/json_schema_compiler/compiler.py (working copy)
@@ -20,7 +20,7 @@
from cpp_type_generator import CppTypeGenerator
from dart_generator import DartGenerator
from cpp_bundle_generator import CppBundleGenerator
-from model import Model
+from model import Model, UnixName
import idl_schema
import json_schema
@@ -87,7 +87,7 @@
referenced_schema = split_schema[1]
referenced_schema_path = os.path.join(
- os.path.dirname(schema), referenced_schema + '.json')
+ os.path.dirname(schema), '%s.json' % UnixName(referenced_schema))
referenced_api_defs = json_schema.Load(referenced_schema_path)
for namespace in referenced_api_defs:
« no previous file with comments | « no previous file | tools/json_schema_compiler/cpp_type_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698