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

Unified Diff: base/files/file_util.h

Issue 2086103002: Add base::ExecutableExistsInPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit test Created 4 years, 6 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/files/file_util_posix.cc » ('j') | base/files/file_util_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_util.h
diff --git a/base/files/file_util.h b/base/files/file_util.h
index 8fd9fffeb36d044c6e169fc24f33ccdea0dec732..83373fc8f97b24f1e348df2981ffabff52ae9dfb 100644
--- a/base/files/file_util.h
+++ b/base/files/file_util.h
@@ -199,6 +199,10 @@ BASE_EXPORT bool GetPosixFilePermissions(const FilePath& path, int* mode);
// the permission of a file which the symlink points to.
BASE_EXPORT bool SetPosixFilePermissions(const FilePath& path, int mode);
+// Returns true iff |executable| can be found in any directory specified by the
+// $PATH environment variable.
+BASE_EXPORT bool ExecutableExistsInPath(const FilePath::StringType& executable);
+
#endif // OS_POSIX
// Returns true if the given directory is empty
« no previous file with comments | « no previous file | base/files/file_util_posix.cc » ('j') | base/files/file_util_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698