| Index: base/file_util_posix.cc
|
| diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
|
| index 5bf4fb10d31b7298db2e4c44b8ce87c40b863a9d..3f1edec541f16beb1136dcd11be58b90c0eaa150 100644
|
| --- a/base/file_util_posix.cc
|
| +++ b/base/file_util_posix.cc
|
| @@ -1130,4 +1130,9 @@ bool VerifyPathControlledByAdmin(const FilePath& path) {
|
| }
|
| #endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
|
|
| +int GetMaximumPathComponentLength(const FilePath& path) {
|
| + base::ThreadRestrictions::AssertIOAllowed();
|
| + return pathconf(path.value().c_str(), _PC_NAME_MAX);
|
| +}
|
| +
|
| } // namespace file_util
|
|
|