diff --git a/shell/common/asar/archive_mac.mm b/shell/common/asar/archive_mac.mm index 3ad60faf24c5..c3550e24e26f 100644 --- a/shell/common/asar/archive_mac.mm +++ b/shell/common/asar/archive_mac.mm @@ -11,6 +11,7 @@ #include #include +#include "base/files/file_util.h" #include "base/logging.h" #include "base/mac/bundle_locations.h" #include "base/mac/foundation_util.h" @@ -21,7 +22,8 @@ namespace asar { absl::optional Archive::RelativePath() const { - base::FilePath bundle_path = base::mac::MainBundlePath().Append("Contents"); + base::FilePath bundle_path = base::MakeAbsoluteFilePath( + base::mac::MainBundlePath().Append("Contents")); base::FilePath relative_path; if (!bundle_path.AppendRelativePath(path_, &relative_path))