Skip to content

Commit

Permalink
fix: MakeAbsoluteFilePath is a blocking call (#23840)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed May 30, 2020
1 parent 236c133 commit aa8d815
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/common/api/electron_api_native_image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit aa8d815

Please sign in to comment.