[fuchsia] replace deprecated fdio_ns_connect (flutter/engine#34327)

This commit is contained in:
Chase Latta
2022-06-27 13:01:41 -07:00
committed by GitHub
parent 6682a37021
commit 5e40f2c07c
3 changed files with 5 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
Signature: f2795d04df7d2bf137a1e99e569acc25
Signature: 841a94fc3514a3c64d495ed7d25388cd
UNUSED LICENSES:

View File

@@ -203,9 +203,8 @@ Dart_Handle System::ChannelCreate(uint32_t options) {
zx_status_t System::ConnectToService(std::string path,
fml::RefPtr<Handle> channel) {
return fdio_ns_connect(GetNamespace(), path.c_str(),
ZX_FS_RIGHT_READABLE | ZX_FS_RIGHT_WRITABLE,
channel->ReleaseHandle());
return fdio_ns_service_connect(GetNamespace(), path.c_str(),
channel->ReleaseHandle());
}
zx::channel System::CloneChannelFromFileDescriptor(int fd) {