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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl

Issue 2604953003: Remove internal uses of mojo::Array and mojo::WTFArray. (Closed)
Patch Set: Created 4 years 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
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) {

Powered by Google App Engine
This is Rietveld 408576698