[fuchsia] publish dart runner v2 protocol (flutter/engine#28993)

This commit is contained in:
Chase Latta 2021-10-04 13:18:03 -07:00 committed by GitHub
parent 40f70ec8b3
commit afd577c733
3 changed files with 9 additions and 1 deletions

View File

@ -165,6 +165,13 @@ DartRunner::DartRunner(sys::ComponentContext* context) : context_(context) {
bindings_.AddBinding(this, std::move(request));
});
context_->outgoing()
->AddPublicService<fuchsia::component::runner::ComponentRunner>(
[this](fidl::InterfaceRequest<
fuchsia::component::runner::ComponentRunner> request) {
component_runner_bindings_.AddBinding(this, std::move(request));
});
#if !defined(DART_PRODUCT)
// The VM service isolate uses the process-wide namespace. It writes the
// vm service protocol port under /tmp. The VMServiceObject exposes that

View File

@ -36,6 +36,8 @@ class DartRunner : public fuchsia::sys::Runner,
// Not owned by DartRunner.
sys::ComponentContext* context_;
fidl::BindingSet<fuchsia::sys::Runner> bindings_;
fidl::BindingSet<fuchsia::component::runner::ComponentRunner>
component_runner_bindings_;
#if !defined(AOT_RUNTIME)
dart_utils::MappedResource vm_snapshot_data_;

View File

@ -17,7 +17,6 @@
},
{
protocol: [
"fuchsia.component.runner.ComponentRunner",
"fuchsia.device.NameProvider", // For fdio uname()
"fuchsia.feedback.CrashReporter",
"fuchsia.intl.PropertyProvider", // For dartVM timezone support