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

Unified Diff: sdk/lib/io/secure_socket.dart

Issue 2529393002: Make core libraries use generic method syntax. (Closed)
Patch Set: Update status files. Created 3 years, 12 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 | « sdk/lib/io/link.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/secure_socket.dart
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
index a2d6d7855ec0018ca05f16e9c9936479fde8318b..a523f20d6991099d4182a094023dd84b6bb66fbc 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -75,7 +75,7 @@ abstract class SecureSocket implements Socket {
SecurityContext context,
bool onBadCertificate(X509Certificate certificate)}) {
return ((socket as dynamic/*_Socket*/)._detachRaw() as Future)
- .then/*<RawSecureSocket>*/((detachedRaw) {
+ .then<RawSecureSocket>((detachedRaw) {
return RawSecureSocket.secure(
detachedRaw[0] as RawSocket,
subscription: detachedRaw[1] as StreamSubscription<RawSocketEvent>,
@@ -83,7 +83,7 @@ abstract class SecureSocket implements Socket {
context: context,
onBadCertificate: onBadCertificate);
})
- .then/*<SecureSocket>*/((raw) => new SecureSocket._(raw));
+ .then<SecureSocket>((raw) => new SecureSocket._(raw));
}
/**
@@ -115,7 +115,7 @@ abstract class SecureSocket implements Socket {
bool requireClientCertificate: false,
List<String> supportedProtocols}) {
return ((socket as dynamic/*_Socket*/)._detachRaw() as Future)
- .then/*<RawSecureSocket>*/((detachedRaw) {
+ .then<RawSecureSocket>((detachedRaw) {
return RawSecureSocket.secureServer(
detachedRaw[0] as RawSocket,
context,
@@ -125,7 +125,7 @@ abstract class SecureSocket implements Socket {
requireClientCertificate: requireClientCertificate,
supportedProtocols: supportedProtocols);
})
- .then/*<SecureSocket>*/((raw) => new SecureSocket._(raw));
+ .then<SecureSocket>((raw) => new SecureSocket._(raw));
}
/**
« no previous file with comments | « sdk/lib/io/link.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698