- NSURL* nsurl = base::mac::CFToNSCast(url);
- base::FilePath location = base::mac::NSStringToFilePath([nsurl path]);
- CFNumberRef size_number =
- base::mac::GetValueFromDictionary<CFNumberRef>(
- dict, kDADiskDescriptionMediaSizeKey);
+ base::FilePath location =
+ base::apple::NSURLToFilePath(base::apple::CFToNSPtrCast(url));
+ CFNumberRef size_number = base::apple::GetValueFromDictionary<CFNumberRef>(
+ dict, kDADiskDescriptionMediaSizeKey);