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..2914b1b8df676c6ed975297d1d8961602894ddb9 100644 |
| --- a/base/files/file_util.h |
| +++ b/base/files/file_util.h |
| @@ -38,6 +38,7 @@ |
| namespace base { |
| class Time; |
| +class Environment; |
|
Lei Zhang
2016/06/23 19:17:06
nit: alphabetical order
Tom (Use chromium acct)
2016/06/23 21:55:12
Done.
|
| //----------------------------------------------------------------------------- |
| // Functions that involve filesystem access or modification: |
| @@ -199,6 +200,11 @@ 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. |
|
Lei Zhang
2016/06/23 19:17:06
... environment variable in |env|.
Tom (Use chromium acct)
2016/06/23 21:55:12
Done.
|
| +BASE_EXPORT bool ExecutableExistsInPath(Environment* env, |
| + const FilePath::StringType& executable); |
| + |
| #endif // OS_POSIX |
| // Returns true if the given directory is empty |