[fuchsia] Update FIDL1 C++ bindings to match FIDL2 interface

This change will make it easier to transition to FIDL2.

Change-Id: Ibd69f9cb60687630b81306d5931134916d4d1d84
Reviewed-on: https://dart-review.googlesource.com/37640
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
Adam Barth 2018-01-30 21:39:52 +00:00 committed by commit-bot@chromium.org
parent 0bca64f57e
commit b447a3989c

View file

@ -44,7 +44,7 @@ intptr_t OS::ProcessId() {
static zx_status_t GetTimeServicePtr(
time_service::TimeServiceSyncPtr* time_svc) {
zx::channel service_root = app::subtle::CreateStaticServiceRootHandle();
zx::channel time_svc_channel = GetSynchronousProxy(time_svc).PassChannel();
zx::channel time_svc_channel = GetSynchronousProxy(time_svc).TakeChannel();
return fdio_service_connect_at(service_root.get(), kTimeServiceName,
time_svc_channel.release());
}