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

Unified Diff: sdk/lib/io/http_impl.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/file_impl.dart ('k') | sdk/lib/io/http_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 96005c9586f3fdf5e5947ad1144ef0f344a148ce..a965afa43fe2f18dc4ce986a393e02a64429dd15 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -764,11 +764,11 @@ class _HttpClientRequest extends _HttpOutboundMessage<HttpClientResponse>
if (response.redirects.length < maxRedirects) {
// Redirect and drain response.
future = response.drain()
- .then/*<HttpClientResponse>*/((_) => response.redirect());
+ .then<HttpClientResponse>((_) => response.redirect());
} else {
// End with exception, too many redirects.
future = response.drain()
- .then/*<HttpClientResponse>*/((_) {
+ .then<HttpClientResponse>((_) {
return new Future<HttpClientResponse>.error(
new RedirectException("Redirect limit exceeded",
response.redirects));
@@ -1391,7 +1391,7 @@ class _HttpClientConnection {
// data).
_httpParser.isHead = method == "HEAD";
_streamFuture = outgoing.done
- .then/*<Socket>*/((Socket s) {
+ .then<Socket>((Socket s) {
// Request sent, set up response completer.
_nextResponseCompleter = new Completer();
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/http_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698