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

Unified Diff: sdk/lib/io/directory_impl.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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/html/src/native_DOMImplementation.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/directory_impl.dart
diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart
index 4a9d5c1c861cc00ec640ea3e56dcb0163cd90dc2..fadf841c89d93e78260c8ea5ab6e9ad85af4255e 100644
--- a/sdk/lib/io/directory_impl.dart
+++ b/sdk/lib/io/directory_impl.dart
@@ -29,7 +29,7 @@ class _Directory implements Directory {
Future<bool> exists() {
_ensureDirectoryService();
- List request = new List(2);
+ List request = new List.fixedLength(2);
request[0] = EXISTS_REQUEST;
request[1] = _path;
return _directoryService.call(request).then((response) {
@@ -77,7 +77,7 @@ class _Directory implements Directory {
Future<Directory> create({recursive: false}) {
if (recursive) return createRecursively();
_ensureDirectoryService();
- List request = new List(2);
+ List request = new List.fixedLength(2);
request[0] = CREATE_REQUEST;
request[1] = _path;
return _directoryService.call(request).then((response) {
@@ -110,7 +110,7 @@ class _Directory implements Directory {
Future<Directory> createTemp() {
_ensureDirectoryService();
- List request = new List(2);
+ List request = new List.fixedLength(2);
request[0] = CREATE_TEMP_REQUEST;
request[1] = _path;
return _directoryService.call(request).then((response) {
@@ -140,7 +140,7 @@ class _Directory implements Directory {
Future<Directory> delete({recursive: false}) {
_ensureDirectoryService();
- List request = new List(3);
+ List request = new List.fixedLength(3);
request[0] = DELETE_REQUEST;
request[1] = _path;
request[2] = recursive;
@@ -164,7 +164,7 @@ class _Directory implements Directory {
Future<Directory> rename(String newPath) {
_ensureDirectoryService();
- List request = new List(3);
+ List request = new List.fixedLength(3);
request[0] = RENAME_REQUEST;
request[1] = _path;
request[2] = newPath;
@@ -263,7 +263,7 @@ class _DirectoryLister implements DirectoryLister {
final int RESPONSE_COMPLETE = 1;
final int RESPONSE_ERROR = 2;
- List request = new List(3);
+ List request = new List.fixedLength(3);
request[0] = _Directory.LIST_REQUEST;
request[1] = path;
request[2] = recursive;
« no previous file with comments | « sdk/lib/html/src/native_DOMImplementation.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698