| 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 0ccda1afe497bbd41ab088f94d1f599c86d31280..a305b7525bd5091563b1c29daca48bbbc1d4665a 100644
|
| --- a/tools/json_schema_compiler/cpp_type_generator.py
|
| +++ b/tools/json_schema_compiler/cpp_type_generator.py
|
| @@ -222,6 +222,8 @@ class CppTypeGenerator(object):
|
| self._cpp_namespaces[dependency])
|
| for dependency in self._NamespaceTypeDependencies().keys()]):
|
| c.Append('#include "%s"' % header)
|
| + if self._namespace.events:
|
| + c.Append('#include "base/json/json_writer.h"')
|
| return c
|
|
|
| def _ResolveTypeNamespace(self, ref_type):
|
|
|