Skip to content

Commit

Permalink
Revert "[fuchsia] Add diagnostics directory to the remote dirs and en…
Browse files Browse the repository at this point in the history
…sure entry exists (flutter#15258)"

This reverts commit 1c3dcf6.
  • Loading branch information
NoamDev committed Feb 27, 2020
1 parent a438b17 commit aeeca55
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions shell/platform/fuchsia/flutter/component.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,21 +231,15 @@ Application::Application(
<< "): " << zx_status_get_string(status);
return;
}
const char* other_dirs[] = {"debug", "ctrl", "diagnostics"};
const char* other_dirs[] = {"debug", "ctrl"};
// add other directories as RemoteDirs.
for (auto& dir_str : other_dirs) {
fidl::InterfaceHandle<fuchsia::io::Directory> dir;
auto request = dir.NewRequest().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);
}
fdio_service_connect_at(directory_ptr_.channel().get(), dir_str,
request.release());
outgoing_dir_->AddEntry(
dir_str, std::make_unique<vfs::RemoteDir>(dir.TakeChannel()));
}
};

Expand Down

0 comments on commit aeeca55

Please sign in to comment.