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

Unified Diff: mojo/public/cpp/bindings/lib/serialization_util.h

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/cpp/bindings/lib/serialization_util.h
diff --git a/mojo/public/cpp/bindings/lib/serialization_util.h b/mojo/public/cpp/bindings/lib/serialization_util.h
index aa5806722c65fb5feeb304c63330da90d8e495ef..698e90d96284476a454885e241632da5747d1215 100644
--- a/mojo/public/cpp/bindings/lib/serialization_util.h
+++ b/mojo/public/cpp/bindings/lib/serialization_util.h
@@ -69,8 +69,7 @@ inline void AssociatedInterfacePtrInfoToData(
AssociatedInterfacePtrInfo<T> input,
AssociatedInterface_Data* output) {
output->version = input.version();
- output->interface_id =
- AssociatedInterfacePtrInfoHelper::PassHandle(&input).release();
+ output->interface_id = input.PassHandle().release();
}
template <typename T>
@@ -78,8 +77,7 @@ inline void AssociatedInterfaceDataToPtrInfo(
AssociatedInterface_Data* input,
AssociatedInterfacePtrInfo<T>* output,
MultiplexRouter* router) {
- AssociatedInterfacePtrInfoHelper::SetHandle(
- output,
+ output->set_handle(
router->CreateLocalEndpointHandle(FetchAndReset(&input->interface_id)));
output->set_version(input->version);
}

Powered by Google App Engine
This is Rietveld 408576698