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

Unified Diff: base/base_paths_linux.cc

Issue 8390002: implement GetProcessExecutablePath() on OpenBSD and start using it (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: return the variable instead 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 | « no previous file | base/process_util.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 b082eb3b3d71e6811ed385541df2df7268d1bb0e..4fa04d825b7457a84b239f7886faf164b1fc1521 100644
--- a/base/base_paths_linux.cc
+++ b/base/base_paths_linux.cc
@@ -68,7 +68,11 @@ bool PathProviderPosix(int key, FilePath* result) {
return true;
#elif defined(OS_OPENBSD)
// There is currently no way to get the executable path on OpenBSD
- *result = FilePath("/usr/local/chrome/chrome");
+ char *cpath;
+ if ((cpath = getenv("CHROME_EXE_PATH")) != NULL)
+ *result = FilePath(cpath);
+ else
+ *result = FilePath("/usr/local/chrome/chrome");
return true;
#endif
}
« no previous file with comments | « no previous file | base/process_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698