[dart][flutter] Update to ComponentContext::Create
CreateFromStartupInfo is being renamed.
DX-387 #comment
Change-Id: Id7a261015ff2395b089b2abdc29524b08aaffdad
diff --git a/runtime/dart_runner/dart_runner.cc b/runtime/dart_runner/dart_runner.cc
index a42b18a..8856fa0 100644
--- a/runtime/dart_runner/dart_runner.cc
+++ b/runtime/dart_runner/dart_runner.cc
@@ -123,7 +123,7 @@
} // namespace
DartRunner::DartRunner()
- : context_(sys::ComponentContext::CreateFromStartupInfo()) {
+ : context_(sys::ComponentContext::Create()) {
context_->outgoing().AddPublicService<fuchsia::sys::Runner>(
[this](fidl::InterfaceRequest<fuchsia::sys::Runner> request) {
bindings_.AddBinding(this, std::move(request));
diff --git a/runtime/flutter_runner/runner.cc b/runtime/flutter_runner/runner.cc
index f4bd0bd..6bb5296 100644
--- a/runtime/flutter_runner/runner.cc
+++ b/runtime/flutter_runner/runner.cc
@@ -96,7 +96,7 @@
Runner::Runner(async::Loop* loop)
: loop_(loop),
- host_context_(sys::ComponentContext::CreateFromStartupInfo()) {
+ host_context_(sys::ComponentContext::Create()) {
#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