Revert "fix: Drop support for OS X Mavericks (version 10.9)" (#13333)
This commit is contained in:
parent
562eddf0e9
commit
79fbd6bab1
15 changed files with 290 additions and 156 deletions
|
@ -147,9 +147,13 @@ void Browser::SetUserActivity(const std::string& type,
|
|||
}
|
||||
|
||||
std::string Browser::GetCurrentActivityType() {
|
||||
NSUserActivity* userActivity =
|
||||
[[AtomApplication sharedApplication] getCurrentActivity];
|
||||
return base::SysNSStringToUTF8(userActivity.activityType);
|
||||
if (@available(macOS 10.10, *)) {
|
||||
NSUserActivity* userActivity =
|
||||
[[AtomApplication sharedApplication] getCurrentActivity];
|
||||
return base::SysNSStringToUTF8(userActivity.activityType);
|
||||
} else {
|
||||
return std::string();
|
||||
}
|
||||
}
|
||||
|
||||
void Browser::InvalidateCurrentActivity() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue