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

Unified Diff: lib/src/multipart_file.dart

Issue 1306723008: pkg/http: Removed uses of Chain.track (Closed) Base URL: https://github.com/dart-lang/http.git@master
Patch Set: sdk version oops Created 5 years, 4 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 | « lib/src/io_client.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/multipart_file.dart
diff --git a/lib/src/multipart_file.dart b/lib/src/multipart_file.dart
index 07758b9097fb5713eebfed084c0643c7da3a2b7f..9e40c64ab107c38ca6f3d6090d3277e5a64816f5 100644
--- a/lib/src/multipart_file.dart
+++ b/lib/src/multipart_file.dart
@@ -9,7 +9,6 @@ import 'dart:convert';
import 'package:http_parser/http_parser.dart';
import 'package:path/path.dart' as path;
-import 'package:stack_trace/stack_trace.dart';
import 'byte_stream.dart';
import 'io.dart' as io;
@@ -93,8 +92,8 @@ class MultipartFile {
io.assertSupported("MultipartFile.fromPath");
if (filename == null) filename = path.basename(filePath);
var file = io.newFile(filePath);
- return Chain.track(file.length()).then((length) {
- var stream = new ByteStream(Chain.track(file.openRead()));
+ return file.length().then((length) {
+ var stream = new ByteStream(file.openRead());
return new MultipartFile(field, stream, length,
filename: filename,
contentType: contentType);
« no previous file with comments | « lib/src/io_client.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698