-
Notifications
You must be signed in to change notification settings - Fork 6k
[fuchsia] Use dart::ComponentContext() #17876
[fuchsia] Use dart::ComponentContext() #17876
Conversation
612c771 to
254d2db
Compare
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after a comment cross referencing the fxr tracking the SDK update.
Filed https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=50815 per your request. |
cbracken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @filmil
254d2db to
3a25bd5
Compare
This functionality is added in issue flutter#41523. Allows runners to request the singleton instance of `sys::ComponentContext`, while it remains also accessible to component-specific code that does not have direct access to top-level objects. Fixes flutter#41523
3a25bd5 to
af7dc3f
Compare
|
@chinmaygarde Anything else needed to merge this? Thanks! |
|
Nope. Let's merge this. Do you have merge commit privileges or should I commit? go/flutter-onboarding has a section on how to get them. |
|
I don't have commit rights at the moment. Would you mind merging? I'll start with flutter onboarding in case I need it in the future. |
This will allow introspection of the state of tzdata loader, making error diagnostics easier on Fuchsia. Must be merged only after this pull request is merged into flutter flutter/engine#17876 Otherwise, the call to the `dart::ComponentContext()` could prevent the runners from initializing the component context correctly. Tested: Compiled and deployed on a Fuchsia device. The result on Fuchsia is as seen below. ``` $ fx iquery /hub/c/flutter_jit_product_runner.cmx/21608/out/diagnostics: /hub/c/flutter_jit_product_runner.cmx/21608/out/diagnostics#os: dst_status = 0 tz_data_close_status = 0 tz_data_status = 0 ``` See issue #41525 for details. Bug: fuchsia:43341 Change-Id: I43ea289003e1e1d09cca4163236bc477eb9cee80 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144480 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Filip Filmar <fmil@google.com>
This functionality is added in dart-lang/sdk#41523. Allows runners to request
the singleton instance of
sys::ComponentContext, while it remains alsoaccessible to component-specific code that does not have direct access
to top-level objects.
Fixes dart-lang/sdk#41523