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

Unified Diff: runtime/bin/file.cc

Issue 23658048: Revert "dart:io | Change File.fullPath to FileSystemEntity.resolveSymbolicLinks." (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 | « runtime/bin/file.h ('k') | runtime/bin/file_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.cc
diff --git a/runtime/bin/file.cc b/runtime/bin/file.cc
index 0ae6aadecee69db448438000c0e7d103dac2d477..35ea5fc45e2a85d6883de302ef3f2789d421eda9 100644
--- a/runtime/bin/file.cc
+++ b/runtime/bin/file.cc
@@ -508,7 +508,7 @@ void FUNCTION_NAME(File_RenameLink)(Dart_NativeArguments args) {
}
-void FUNCTION_NAME(File_ResolveSymbolicLinks)(Dart_NativeArguments args) {
+void FUNCTION_NAME(File_FullPath)(Dart_NativeArguments args) {
const char* str =
DartUtils::GetStringValue(Dart_GetNativeArgument(args, 0));
char* path = File::GetCanonicalPath(str);
@@ -711,7 +711,7 @@ static CObject* FileRenameRequest(const CObjectArray& request) {
}
-static CObject* FileResolveSymbolicLinksRequest(const CObjectArray& request) {
+static CObject* FileFullPathRequest(const CObjectArray& request) {
if (request.Length() == 2 && request[1]->IsString()) {
CObjectString filename(request[1]);
char* result = File::GetCanonicalPath(filename.CString());
@@ -1191,8 +1191,8 @@ static void FileService(Dart_Port dest_port_id,
case File::kRenameRequest:
response = FileRenameRequest(request);
break;
- case File::kResolveSymbolicLinksRequest:
- response = FileResolveSymbolicLinksRequest(request);
+ case File::kFullPathRequest:
+ response = FileFullPathRequest(request);
break;
case File::kCloseRequest:
response = FileCloseRequest(request);
« no previous file with comments | « runtime/bin/file.h ('k') | runtime/bin/file_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698