commit | 741debced2db082f4921d7a46f79d81e47caaada | [log] [tgz] |
---|---|---|
author | ccameron <ccameron@chromium.org> | Wed Oct 07 19:42:18 2015 |
committer | Commit bot <commit-bot@chromium.org> | Wed Oct 07 19:43:34 2015 |
tree | 703e1ce03ab4eaf41e695385624939fa354f24d3 | |
parent | fe29294ef4a3045ab4d92dace8d6d9b20690d121 [diff] |
Mac: Use [NSArray firstObject] for [NSScreen screens] Crash reports indicate that the array is at times empty. Use firstObject instead of objectAtIndex:0, because firstObject will return nil instead of raising an exception. BUG=529723 Review URL: https://codereview.chromium.org/1380083005 Cr-Commit-Position: refs/heads/master@{#352915}