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

Unified Diff: base/base_paths_posix.cc

Issue 2692273008: Hacky slashy (Closed)
Patch Set: rebase on config CL, and minor fixes Created 3 years, 7 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 | « base/BUILD.gn ('k') | base/debug/activity_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_paths_posix.cc
diff --git a/base/base_paths_posix.cc b/base/base_paths_posix.cc
index c5123908d35f3dfefb9fba63edd66985918b4829..2fa74c281c1759ec8cb796bafea0dd8c55c81239 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;
}
« no previous file with comments | « base/BUILD.gn ('k') | base/debug/activity_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698