Chromium Code Reviews| Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
| index 4c5ed38c998076b0d6aed51c9624c9ed16defa57..9dccfb6cb4f49ef8eb1559d2159f67c5a26b767c 100644 |
| --- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
| @@ -50,8 +50,8 @@ class {{export_attribute}} {{struct.name}} { |
| size_t Hash(size_t seed) const; |
| {%- endif %} |
| -{%- set serialization_result_type = "mojo::WTFArray<uint8_t>" |
| - if for_blink else "mojo::Array<uint8_t>" %} |
| +{%- set serialization_result_type = "Vector<uint8_t>" |
|
yzshen1
2017/01/03 19:26:26
Please use WTF::Vector here to be more explicit. T
Sam McNally
2017/01/03 23:52:04
Done.
|
| + if for_blink else "std::vector<uint8_t>" %} |
| template <typename UserType> |
| static {{serialization_result_type}} Serialize(UserType* input) { |