| Index: content/browser/download/quarantine_mac.mm
|
| diff --git a/content/browser/download/quarantine_mac.mm b/content/browser/download/quarantine_mac.mm
|
| index e3351e2fb9c4230855b95e82b037ed3d6e0d58f4..2c0ea9777556054d1c5d4399adb6f5605d86c750 100644
|
| --- a/content/browser/download/quarantine_mac.mm
|
| +++ b/content/browser/download/quarantine_mac.mm
|
| @@ -31,8 +31,9 @@ namespace {
|
| bool GetQuarantinePropertiesDeprecated(
|
| const base::FilePath& file,
|
| base::scoped_nsobject<NSMutableDictionary>* properties) {
|
| + const UInt8* path = reinterpret_cast<const UInt8*>(file.value().c_str());
|
| FSRef file_ref;
|
| - if (!base::mac::FSRefFromPath(file.value(), &file_ref))
|
| + if (FSPathMakeRef(path, &file_ref, nullptr) != noErr)
|
| return false;
|
|
|
| base::ScopedCFTypeRef<CFTypeRef> quarantine_properties;
|
| @@ -56,8 +57,9 @@ bool GetQuarantinePropertiesDeprecated(
|
|
|
| bool SetQuarantinePropertiesDeprecated(const base::FilePath& file,
|
| NSDictionary* properties) {
|
| + const UInt8* path = reinterpret_cast<const UInt8*>(file.value().c_str());
|
| FSRef file_ref;
|
| - if (!base::mac::FSRefFromPath(file.value(), &file_ref))
|
| + if (FSPathMakeRef(path, &file_ref, nullptr) != noErr)
|
| return false;
|
| OSStatus os_error = LSSetItemAttribute(
|
| &file_ref, kLSRolesAll, kLSItemQuarantineProperties, properties);
|
|
|