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

Unified Diff: utils/archive/entry.dart

Issue 11785028: Commit Martin's patch for pub + lib_v2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 11 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 | « pkg/http/lib/src/multipart_file.dart ('k') | utils/archive/input_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/entry.dart
diff --git a/utils/archive/entry.dart b/utils/archive/entry.dart
index 41040c921c2e3afe494d2007beb6026802c797b6..5d4381b6878498c25bde56ffae8fbd322927ffab 100644
--- a/utils/archive/entry.dart
+++ b/utils/archive/entry.dart
@@ -272,7 +272,7 @@ class ArchiveEntry {
_input = new ListInputStream();
// TODO(nweiz): Report errors once issue 3657 is fixed
- var future = _consumeInput().chain((_) {
+ var future = _consumeInput().then((_) {
if (!_input.closed) _input.markEndOfStream();
// Asynchronously complete to give the InputStream callbacks a chance to
// fire.
@@ -307,11 +307,11 @@ class ArchiveEntry {
*/
Future _consumeInput() {
var data;
- return call(read.DATA_BLOCK, _archiveId).chain((_data) {
+ return call(read.DATA_BLOCK, _archiveId).then((_data) {
data = _data;
// TODO(nweiz): This async() call is only necessary because of issue 4222.
return async();
- }).chain((_) {
+ }).then((_) {
if (_input.closed || _archiveId == null || data == null) {
return new Future.immediate(null);
}
« no previous file with comments | « pkg/http/lib/src/multipart_file.dart ('k') | utils/archive/input_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698