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

Unified Diff: mojo/public/tools/bindings/generators/go_templates/interface.tmpl

Issue 1916863003: Delete the |complete_type_set| field from mojom_types.mojom (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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: mojo/public/tools/bindings/generators/go_templates/interface.tmpl
diff --git a/mojo/public/tools/bindings/generators/go_templates/interface.tmpl b/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
index 1160fcfdf21c79395d17aa2ad7528981b5190cea..f02571516bea9eda2503f00e7f6dc2895d20987e 100644
--- a/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
+++ b/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
@@ -199,7 +199,7 @@ type {{interface|name}}_ServiceDescription struct{}
{% if should_gen_mojom_types and interface.service_name-%}
func (sd *{{interface|name}}_ServiceDescription) GetTopLevelInterface() (outMojomInterface {{typepkg}}MojomInterface, err error) {
- interfaceTypeKey := getRuntimeTypeInfo().ServicesByName["{{interface.service_name}}"].TopLevelInterface
+ interfaceTypeKey := getRuntimeTypeInfo().Services["{{interface.service_name}}"]
userDefinedType := getRuntimeTypeInfo().TypeMap[interfaceTypeKey].(*{{typepkg}}UserDefinedTypeInterfaceType)
return userDefinedType.Value, nil
}

Powered by Google App Engine
This is Rietveld 408576698