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

Unified Diff: tools/json_schema_compiler/util_cc_helper.py

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/json_schema_compiler/util.cc ('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/util_cc_helper.py
diff --git a/tools/json_schema_compiler/util_cc_helper.py b/tools/json_schema_compiler/util_cc_helper.py
index bf089dd990f5a70e09e81ab9e5247baf21008558..8d490ba5ba345877f1aea32a1765a5b3e9475985 100644
--- a/tools/json_schema_compiler/util_cc_helper.py
+++ b/tools/json_schema_compiler/util_cc_helper.py
@@ -25,7 +25,7 @@ class UtilCCHelper(object):
'dst': dst,
}
- sub['type'] = self._type_manager.GetType(prop)
+ sub['type'] = self._type_manager.GetCppType(prop),
if array_prop.optional:
val = ('%(namespace)s::PopulateOptionalArrayFromDictionary'
'(*%(src)s, "%(name)s", &%(dst)s)')
@@ -46,7 +46,7 @@ class UtilCCHelper(object):
'namespace': API_UTIL_NAMESPACE,
'src': src,
'dst': dst,
- 'type': self._type_manager.GetType(prop),
+ 'type': self._type_manager.GetCppType(prop),
}
if optional:
@@ -65,7 +65,7 @@ class UtilCCHelper(object):
sub = {
'namespace': API_UTIL_NAMESPACE,
'src': src,
- 'type': self._type_manager.GetType(prop),
+ 'type': self._type_manager.GetCppType(prop),
}
if optional:
« no previous file with comments | « tools/json_schema_compiler/util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698