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

Unified Diff: runtime/bin/platform_fuchsia.cc

Issue 3007703002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Remove namespace_unsupported.cc Created 3 years, 4 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/platform_android.cc ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_fuchsia.cc
diff --git a/runtime/bin/platform_fuchsia.cc b/runtime/bin/platform_fuchsia.cc
index 0a14909a621f43e9d2746a0f08c3fa9e3e2fc603..b322b439acf9c309ba7482863849e346f3130d5c 100644
--- a/runtime/bin/platform_fuchsia.cc
+++ b/runtime/bin/platform_fuchsia.cc
@@ -92,12 +92,12 @@ const char* Platform::ResolveExecutablePath() {
if (executable_name == NULL) {
return NULL;
}
- if ((executable_name[0] == '/') && File::Exists(executable_name)) {
- return File::GetCanonicalPath(executable_name);
+ if ((executable_name[0] == '/') && File::Exists(NULL, executable_name)) {
+ return File::GetCanonicalPath(NULL, executable_name);
}
if (strchr(executable_name, '/') != NULL) {
- const char* result = File::GetCanonicalPath(executable_name);
- if (File::Exists(result)) {
+ const char* result = File::GetCanonicalPath(NULL, executable_name);
+ if (File::Exists(NULL, result)) {
return result;
}
} else {
@@ -112,8 +112,8 @@ const char* Platform::ResolveExecutablePath() {
while ((pathcopy = strtok_r(pathcopy, ":", &save)) != NULL) {
snprintf(result, PATH_MAX, "%s/%s", pathcopy, executable_name);
result[PATH_MAX] = '\0';
- if (File::Exists(result)) {
- return File::GetCanonicalPath(result);
+ if (File::Exists(NULL, result)) {
+ return File::GetCanonicalPath(NULL, result);
}
pathcopy = NULL;
}
« no previous file with comments | « runtime/bin/platform_android.cc ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698