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

Unified Diff: runtime/bin/file_fuchsia.cc

Issue 2581363002: Fuchsia: resolve executable name, fetch environment vars (Closed)
Patch Set: Cleanup Created 4 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 | « no previous file | runtime/bin/platform_fuchsia.cc » ('j') | runtime/bin/platform_fuchsia.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_fuchsia.cc
diff --git a/runtime/bin/file_fuchsia.cc b/runtime/bin/file_fuchsia.cc
index bda61138c711fd3e395635b32e79a63859e51e6e..130d0310c3833f2790dc2cf1c1b73801c356bb96 100644
--- a/runtime/bin/file_fuchsia.cc
+++ b/runtime/bin/file_fuchsia.cc
@@ -353,6 +353,8 @@ bool File::IsAbsolutePath(const char* pathname) {
const char* File::GetCanonicalPath(const char* pathname) {
+ // TODO(MG-425): realpath() is not implemented.
+#if 0
char* abs_path = NULL;
if (pathname != NULL) {
char* resolved_path = DartUtils::ScopedCString(PATH_MAX + 1);
@@ -364,6 +366,9 @@ const char* File::GetCanonicalPath(const char* pathname) {
ASSERT((abs_path == NULL) || (abs_path == resolved_path));
}
return abs_path;
+#else
+ return pathname;
+#endif
}
« no previous file with comments | « no previous file | runtime/bin/platform_fuchsia.cc » ('j') | runtime/bin/platform_fuchsia.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698