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

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: Rebase 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_posix.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..a64807f51f27a5ab541aec894d362ea0975eb7a7 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 char* executable);
Lei Zhang 2016/06/21 21:31:21 Use a StringPiece
Tom (Use chromium acct) 2016/06/22 16:57:55 Used FilePath::StringType instead, as this is what
Lei Zhang 2016/06/23 19:17:05 Ya, that's fine.
+
#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_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698