fix: MakeAbsoluteFilePath is a blocking call (#23840)

This commit is contained in:
Cheng Zhao
2020-05-31 02:01:55 +09:00
committed by GitHub
parent 236c1334e3
commit aa8d81511f

View File

@@ -62,6 +62,7 @@ base::FilePath NormalizePath(const base::FilePath& path) {
return path;
}
base::ThreadRestrictions::ScopedAllowIO allow_blocking;
base::FilePath absolute_path = MakeAbsoluteFilePath(path);
// MakeAbsoluteFilePath returns an empty path on failures so use original path
if (absolute_path.empty()) {