| Index: tools/json_schema_compiler/cpp_type_generator.py
|
| diff --git a/tools/json_schema_compiler/cpp_type_generator.py b/tools/json_schema_compiler/cpp_type_generator.py
|
| index de6d1306287511d5419ed199174aae6b1663ac17..76e76e0c661526aa2b24a99caae78c7551e6773a 100644
|
| --- a/tools/json_schema_compiler/cpp_type_generator.py
|
| +++ b/tools/json_schema_compiler/cpp_type_generator.py
|
| @@ -96,7 +96,10 @@ class CppTypeGenerator(object):
|
| if self._default_namespace is type_.namespace:
|
| cpp_type = cpp_util.Classname(type_.name)
|
| else:
|
| - cpp_type = '%s::%s' % (type_.namespace.unix_name,
|
| + cpp_namespace = cpp_util.GetCppNamespace(
|
| + type_.namespace.cpp_namespace_pattern,
|
| + type_.namespace.unix_name)
|
| + cpp_type = '%s::%s' % (cpp_namespace,
|
| cpp_util.Classname(type_.name))
|
| elif type_.property_type == PropertyType.ANY:
|
| cpp_type = 'base::Value'
|
| @@ -130,7 +133,7 @@ class CppTypeGenerator(object):
|
| PropertyType.OBJECT,
|
| PropertyType.CHOICES))
|
|
|
| - def GenerateForwardDeclarations(self, cpp_namespace_pattern):
|
| + def GenerateForwardDeclarations(self):
|
| """Returns the forward declarations for self._default_namespace.
|
| """
|
| c = Code()
|
| @@ -144,7 +147,7 @@ class CppTypeGenerator(object):
|
| if not filtered_deps:
|
| continue
|
|
|
| - cpp_namespace = cpp_util.GetCppNamespace(cpp_namespace_pattern,
|
| + cpp_namespace = cpp_util.GetCppNamespace(namespace.cpp_namespace_pattern,
|
| namespace.unix_name)
|
| c.Concat(cpp_util.OpenNamespace(cpp_namespace))
|
| for dep in filtered_deps:
|
|
|