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

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

Issue 1991463002: Mojo: Expose untyped associated endpoints through public API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/cpp_templates/struct_data_view_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
index c0835a7bc2cd7148b4dfa1b20a08ddec5985cc00..4fc70d414f7059529ed9fd271a28bcd652286a10 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
@@ -89,10 +89,8 @@ bool {{struct.name}}DataView::Read{{name|under_to_camel}}(
if (data_->header_.version < {{pf.min_version}})
return result;
{%- endif %}
- mojo::internal::AssociatedInterfaceRequestHelper::SetHandle(
- &result,
- context_->router->CreateLocalEndpointHandle(
- mojo::internal::FetchAndReset(&data_->{{name}})));
+ result.Bind(context_->router->CreateLocalEndpointHandle(
+ mojo::internal::FetchAndReset(&data_->{{name}})));
return result;
}

Powered by Google App Engine
This is Rietveld 408576698