| Index: base/file_util_posix.cc
|
| diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
|
| index da7a09669e396aa4aaf6dce9d27cbe5d35d4ffec..62bc9b3f9b061ced5e1201f1b2ddc405e29f321a 100644
|
| --- a/base/file_util_posix.cc
|
| +++ b/base/file_util_posix.cc
|
| @@ -1132,4 +1132,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
|
|
|