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

Unified Diff: utils/archive/reader.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « utils/archive/options.dart ('k') | utils/archive/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/reader.dart
diff --git a/utils/archive/reader.dart b/utils/archive/reader.dart
index 04fdddffc9fc8c2e6280b5fe815d853e005ddac8..74760a53e986395b1c1dd4d74fc3ed51d115e1e6 100644
--- a/utils/archive/reader.dart
+++ b/utils/archive/reader.dart
@@ -60,7 +60,7 @@ class ArchiveReader {
return _createArchive().chain((_id) {
id = _id;
return call(OPEN_FILENAME, id, [file, block_size]);
- }).transform((_) => new ArchiveInputStream(id));
+ }).then((_) => new ArchiveInputStream(id));
}
/** Begins extracting from [data], which should be a list of bytes. */
@@ -69,7 +69,7 @@ class ArchiveReader {
return _createArchive().chain((_id) {
id = _id;
return call(OPEN_MEMORY, id, [bytesForC(data)]);
- }).transform((_) => new ArchiveInputStream(id));
+ }).then((_) => new ArchiveInputStream(id));
}
/**
@@ -81,7 +81,7 @@ class ArchiveReader {
if (id == 0 || id == null) {
throw new ArchiveException("Archive is invalid or closed.");
}
- return _pushConfiguration(id).transform((_) => id);
+ return _pushConfiguration(id).then((_) => id);
});
}
« no previous file with comments | « utils/archive/options.dart ('k') | utils/archive/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698