Index: mojo/public/tools/bindings/generators/cpp_templates/struct_definition.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_definition.tmpl |
index a877fc7adae3af83b24a442d89b3bb9bfb3d0e3e..6a8254949795698009140db45bd03393bedcc70c 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_definition.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_definition.tmpl |
@@ -19,7 +19,8 @@ |
} |
{%- endif %} |
{%- endif %} |
-{%- if kind|is_array_kind or kind|is_string_kind %} |
+{%- if kind|is_array_kind or kind|is_string_kind or |
+ kind|is_native_only_kind %} |
const mojo::internal::ArrayValidateParams {{name}}_validate_params( |
{{kind|get_array_validate_params_ctor_args|indent(6)}}); |
if (!mojo::internal::ValidateArray(object->{{name}}, bounds_checker, |