Chromium Code Reviews| 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 |