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

Unified Diff: utils/archive/utils.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/reader.dart ('k') | utils/css/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/utils.dart
diff --git a/utils/archive/utils.dart b/utils/archive/utils.dart
index 1a0fc387cf10b75e85db59f41cf613af26143f34..a5e021995ecdef653c913d2deb7cb41113e51420 100644
--- a/utils/archive/utils.dart
+++ b/utils/archive/utils.dart
@@ -33,7 +33,7 @@ SendPort _newServicePort() native "Archive_ServicePort";
Future call(int requestType, [int id, List args]) {
var fullArgs = [requestType, id];
if (args != null) fullArgs.addAll(args);
- return servicePort.call(listForC(fullArgs)).transform((response) {
+ return servicePort.call(listForC(fullArgs)).then((response) {
var success = response[0];
var errno = response[1];
var message = response[2];
@@ -45,7 +45,7 @@ Future call(int requestType, [int id, List args]) {
/** Converts [input] to a fixed-length list which C can understand. */
List listForC(List input) {
- var list = new List(input.length);
+ var list = new List.fixedLength(input.length);
list.setRange(0, input.length, input);
return list;
}
« no previous file with comments | « utils/archive/reader.dart ('k') | utils/css/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698