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 |
} |