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

Unified Diff: base/base_paths_linux.cc

Issue 8228005: openbsd and freebsd fixes for base (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add myself to the AUTHORS Created 9 years, 2 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/base.gypi ('k') | base/basictypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_paths_linux.cc
diff --git a/base/base_paths_linux.cc b/base/base_paths_linux.cc
index 9f940cb986cb4d6145401c1d3c0a74dbf380e2fe..b082eb3b3d71e6811ed385541df2df7268d1bb0e 100644
--- a/base/base_paths_linux.cc
+++ b/base/base_paths_linux.cc
@@ -66,6 +66,10 @@ bool PathProviderPosix(int key, FilePath* result) {
}
*result = FilePath(bin_dir);
return true;
+#elif defined(OS_OPENBSD)
+ // There is currently no way to get the executable path on OpenBSD
+ *result = FilePath("/usr/local/chrome/chrome");
+ return true;
#endif
}
case base::DIR_SOURCE_ROOT: {
« no previous file with comments | « base/base.gypi ('k') | base/basictypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698