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

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

Issue 24596003: Clean up IOService implementation to be shared between patched and non-patched code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « sdk/lib/io/iolib_sources.gypi ('k') | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/link.dart
diff --git a/sdk/lib/io/link.dart b/sdk/lib/io/link.dart
index a1ba19f7033cff0435d496b409add6a4f51d8cd9..ab3ba64839e28d97d03bda7cd08623280ac54c31 100644
--- a/sdk/lib/io/link.dart
+++ b/sdk/lib/io/link.dart
@@ -149,7 +149,7 @@ class _Link extends FileSystemEntity implements Link {
if (Platform.operatingSystem == 'windows') {
target = _makeWindowsLinkTarget(target);
}
- return IOService.dispatch(FILE_CREATE_LINK, [path, target])
+ return _IOService.dispatch(_FILE_CREATE_LINK, [path, target])
.then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(
@@ -203,7 +203,7 @@ class _Link extends FileSystemEntity implements Link {
if (recursive) {
return new Directory(path).delete(recursive: true).then((_) => this);
}
- return IOService.dispatch(FILE_DELETE_LINK, [path]).then((response) {
+ return _IOService.dispatch(_FILE_DELETE_LINK, [path]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response, "Cannot delete link", path);
}
@@ -220,7 +220,7 @@ class _Link extends FileSystemEntity implements Link {
}
Future<Link> rename(String newPath) {
- return IOService.dispatch(FILE_RENAME_LINK, [path, newPath])
+ return _IOService.dispatch(_FILE_RENAME_LINK, [path, newPath])
.then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(
@@ -237,7 +237,7 @@ class _Link extends FileSystemEntity implements Link {
}
Future<String> target() {
- return IOService.dispatch(FILE_LINK_TARGET, [path]).then((response) {
+ return _IOService.dispatch(_FILE_LINK_TARGET, [path]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(
response, "Cannot get target of link", path);
« no previous file with comments | « sdk/lib/io/iolib_sources.gypi ('k') | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698