Skip to content

Commit

Permalink
Remove use of deprecated, unused dart io properties. (flutter#34010)
Browse files Browse the repository at this point in the history
  • Loading branch information
aam authored Jun 13, 2022
1 parent d792826 commit 8cf55cc
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/io/dart_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@ void DartIO::InitForIsolate(bool may_insecurely_connect_to_all_domains,
dart::bin::LookupIONativeSymbol);
FML_CHECK(!CheckAndHandleError(result));

Dart_Handle embedder_config_type =
Dart_GetNonNullableType(io_lib, ToDart("_EmbedderConfig"), 0, nullptr);
FML_CHECK(!CheckAndHandleError(embedder_config_type));

Dart_Handle allow_insecure_connections_result = Dart_SetField(
embedder_config_type, ToDart("_mayInsecurelyConnectToAllDomains"),
ToDart(may_insecurely_connect_to_all_domains));
FML_CHECK(!CheckAndHandleError(allow_insecure_connections_result));

Dart_Handle dart_args[1];
dart_args[0] = ToDart(domain_network_policy);
Dart_Handle set_domain_network_policy_result = Dart_Invoke(
embedder_config_type, ToDart("_setDomainPolicies"), 1, dart_args);
FML_CHECK(!CheckAndHandleError(set_domain_network_policy_result));

Dart_Handle ui_lib = Dart_LookupLibrary(ToDart("dart:ui"));
Dart_Handle dart_validate_args[1];
dart_validate_args[0] = ToDart(may_insecurely_connect_to_all_domains);
Expand Down

0 comments on commit 8cf55cc

Please sign in to comment.