chore: finalize dropping support for OS X Mavericks (version 10.9) (#17102)
This commit is contained in:
parent
df5305d6a7
commit
5e762d6a47
14 changed files with 175 additions and 318 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue