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

Unified Diff: base/base_paths_posix.cc

Issue 2692273008: Hacky slashy (Closed)
Patch Set: . Created 3 years, 10 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
Index: base/base_paths_posix.cc
diff --git a/base/base_paths_posix.cc b/base/base_paths_posix.cc
index baba3cd83f3be503185008ecb37007fbd11d37cb..a60a4ea2c1dca3878c98282c3be57807a3b259ff 100644
--- a/base/base_paths_posix.cc
+++ b/base/base_paths_posix.cc
@@ -59,6 +59,11 @@ bool PathProviderPosix(int key, FilePath* result) {
}
*result = FilePath(FilePath::StringType(bin_dir, length - 1));
return true;
+#elif defined(OS_FUCHSIA)
+ // TODO(scottmg): Port: There isn't any obvious way to get this before
+ // main() at the moment.
+ *result = FilePath("/system/chrome");
+ return true;
#elif defined(OS_SOLARIS)
char bin_dir[PATH_MAX + 1];
if (realpath(getexecname(), bin_dir) == NULL) {
@@ -102,6 +107,7 @@ bool PathProviderPosix(int key, FilePath* result) {
<< "Try running from your chromium/src directory.";
return false;
}
+#if !defined(OS_FUCHSIA)
case DIR_USER_DESKTOP:
*result = nix::GetXDGUserDirectory("DESKTOP", "Desktop");
return true;
@@ -112,6 +118,7 @@ bool PathProviderPosix(int key, FilePath* result) {
*result = cache_dir;
return true;
}
+#endif // !OS_FUCHSIA
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698