Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1482)

Unified Diff: runtime/bin/socket_patch.dart

Issue 1916223003: Fixes NetworkInterface.list crash on Android (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_macos.cc ('k') | runtime/bin/socket_unsupported.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index 1ec51b77795faff13c3a030cd6c553d4ed713ba3..8025ab40b47d481f1f40e929e7a572b78e3254b4 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -49,6 +49,10 @@ patch class InternetAddress {
}
patch class NetworkInterface {
+ /* patch */ static bool get listSupported {
+ return _listSupported();
+ }
+
/* patch */ static Future<List<NetworkInterface>> list({
bool includeLoopback: false,
bool includeLinkLocal: false,
@@ -57,6 +61,8 @@ patch class NetworkInterface {
includeLinkLocal: includeLinkLocal,
type: type);
}
+
+ static bool _listSupported() native "NetworkInterface_ListSupported";
}
class _InternetAddress implements InternetAddress {
« no previous file with comments | « runtime/bin/socket_macos.cc ('k') | runtime/bin/socket_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698