mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia] Add diagnostics directory to the remote dirs and ensure entry exists (flutter/engine#15258)
This reverts commit 866b257d21b1df2e2342459da71312d19a30c581. Once https://fuchsia-review.googlesource.com/c/topaz/+/351729 lands, the diagnostics directory will be present, this would be safe to do and the roller won't be blocked again.
This commit is contained in:
parent
1550f1efb7
commit
3b09b3866a
@ -231,15 +231,21 @@ Application::Application(
|
||||
<< "): " << zx_status_get_string(status);
|
||||
return;
|
||||
}
|
||||
const char* other_dirs[] = {"debug", "ctrl"};
|
||||
const char* other_dirs[] = {"debug", "ctrl", "diagnostics"};
|
||||
// add other directories as RemoteDirs.
|
||||
for (auto& dir_str : other_dirs) {
|
||||
fidl::InterfaceHandle<fuchsia::io::Directory> dir;
|
||||
auto request = dir.NewRequest().TakeChannel();
|
||||
fdio_service_connect_at(directory_ptr_.channel().get(), dir_str,
|
||||
request.release());
|
||||
outgoing_dir_->AddEntry(
|
||||
dir_str, std::make_unique<vfs::RemoteDir>(dir.TakeChannel()));
|
||||
auto status = fdio_service_connect_at(directory_ptr_.channel().get(),
|
||||
dir_str, request.release());
|
||||
if (status == ZX_OK) {
|
||||
outgoing_dir_->AddEntry(
|
||||
dir_str, std::make_unique<vfs::RemoteDir>(dir.TakeChannel()));
|
||||
} else {
|
||||
FML_LOG(ERROR) << "could not add out directory entry(" << dir_str
|
||||
<< ") for flutter app(" << debug_label_
|
||||
<< "): " << zx_status_get_string(status);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user