**Is your feature request related to a problem? Please describe.**
It's mostly related to #14837. Without "Accessibility" consent in "Privacy and Security" since Mojave electron will crash on unregisterAll and return incorrect result in register (true even if it actually wasn't registered) for media shortcuts.

It also will be good to be able to ask for this consent manually or check it's presence.

**Describe the solution you'd like**
Expose [AXIsProcessTrustedWithOptions](https://developer.apple.com/documentation/applicationservices/1459186-axisprocesstrustedwithoptions) with both popup showing and not and add these checks to register/unregister/unregisterAll for Mojave.

**Describe alternatives you've considered**
I've created [a small node.js package](https://github.com/4ndv/node-mac-accessibility-features-check) to perform this checks on my app side, but it's still an incorrect behavior to crash on unregisterAll

atom/browser/api/atom_api_system_preferences.h
void DoUnsubscribeNotification(int request_id, NotificationCenterKind kind);
#endif
 private:
#if defined(OS_WIN)
  
  static LRESULT CALLBACK WndProcStatic(HWND hwnd,
                                        UINT message,
                                        WPARAM wparam,
                                        LPARAM lparam);
  LRESULT CALLBACK WndProc(HWND hwnd,
                           UINT message,
                           WPARAM wparam,
                           LPARAM lparam);
  
  ATOM atom_;
  
  HMODULE instance_;
  
  HWND window_;
  std::string current_color_;
  bool invertered_color_scheme_;
  bool high_contrast_color_scheme_;
  std::unique_ptr<gfx::ScopedSysColorChangeListener> color_change_listener_;
#endif
  DISALLOW_COPY_AND_ASSIGN(SystemPreferences);
};
}  
}  
#endif