Fix a crash on early releases of macOS 10.10.
So far, all instances of this missing selector crash linked in the bug have come from 10.10.0, but my copy of 10.10 has it. This change checks `respondsToSelector:`, instead of OS version, before calling SPI. Bug: 856211 Change-Id: Ib2aa07e0e24b83f1766a2f6e16e19b2b123970a6 Reviewed-on: https://chromium-review.googlesource.com/1115781Reviewed-by:Avi Drissman <avi@chromium.org> Commit-Queue: Sidney San Martín <sdy@chromium.org> Cr-Commit-Position: refs/heads/master@{#571123}
Showing
Please register or sign in to comment