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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py

Issue 890843003: Revert of Update mojo sdk to rev 8af2ccff2eee4bfca1043015abee30482a030b30 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
index 3d0ac2e2c3f09fdc3f7636bbd1ab129dbc6917ff..3a415932c4e0945ba77e1530a52c4a01a728af6f 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
+++ b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
@@ -364,7 +364,6 @@
scope = (module.namespace, )
# TODO(mpcomplete): maybe we should only support POD kinds.
constant.kind = KindFromData(module.kinds, data['kind'], scope)
- constant.parent_kind = parent_kind
constant.value = FixupExpression(module, data.get('value'), scope, None)
value = mojom.ConstantValue(module, parent_kind, constant)
@@ -410,7 +409,7 @@
module.structs = map(
lambda struct: StructFromData(module, struct), data['structs'])
module.unions = map(
- lambda union: UnionFromData(module, union), data.get('unions', []))
+ lambda union: UnionFromData(module, struct), data.get('unions', []))
module.interfaces = map(
lambda interface: InterfaceFromData(module, interface),
data['interfaces'])

Powered by Google App Engine
This is Rietveld 408576698