mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia] publish dart runner v2 protocol (flutter/engine#28993)
This commit is contained in:
parent
40f70ec8b3
commit
afd577c733
@ -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
|
||||
|
||||
@ -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_;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user