chore: finalize dropping support for OS X Mavericks (version 10.9) (#17102)

This commit is contained in:
Milan Burda 2019-02-25 18:21:57 +01:00 committed by Alexey Kuzmin
parent df5305d6a7
commit 5e762d6a47
14 changed files with 175 additions and 318 deletions

View file

@ -26,11 +26,8 @@ namespace {
// thread safe, including LSGetApplicationForURL (> 10.2) and
// NSWorkspace#openURLs.
std::string OpenURL(NSURL* ns_url, bool activate) {
CFURLRef ref = nil;
if (@available(macOS 10.10, *)) {
ref = LSCopyDefaultApplicationURLForURL(base::mac::NSToCFCast(ns_url),
kLSRolesAll, nullptr);
}
CFURLRef ref = LSCopyDefaultApplicationURLForURL(
base::mac::NSToCFCast(ns_url), kLSRolesAll, nullptr);
// If no application could be found, NULL is returned and outError
// (if not NULL) is populated with kLSApplicationNotFoundErr.