Index: mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
diff --git a/mojo/public/tools/bindings/generators/mojom_cpp_generator.py b/mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
index 6dd429bc73f9d92988cd9d997b88148ae731e00a..38b219c61fa0a94ddd50efeec006ee9d5a88eb7f 100644 |
--- a/mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
+++ b/mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
@@ -216,8 +216,7 @@ def IsMoveOnlyKind(kind): |
if IsTypemappedKind(kind): |
if mojom.IsEnumKind(kind): |
return False |
- # TODO(yzshen): Change the attribute to "move_only". |
- return _current_typemap[GetFullMojomNameForKind(kind)]["pass_by_value"] |
+ return _current_typemap[GetFullMojomNameForKind(kind)]["move_only"] |
if mojom.IsStructKind(kind) or mojom.IsUnionKind(kind): |
return True |
if mojom.IsArrayKind(kind): |