Index: ui/gfx/color_profile_mac_unittest.mm |
diff --git a/ui/gfx/color_profile_mac_unittest.mm b/ui/gfx/color_profile_mac_unittest.mm |
index 26dd29072da5a141abfdcad85f8a0d1cf8b4c862..3910a9d263bd1d06dc1261bb23a34b013b875438 100644 |
--- a/ui/gfx/color_profile_mac_unittest.mm |
+++ b/ui/gfx/color_profile_mac_unittest.mm |
@@ -51,7 +51,7 @@ class ColorProfileTest : public ui::CocoaTest { |
} |
NSRect PrimaryScreenFrame() { |
- return [[[NSScreen screens] objectAtIndex:0] frame]; |
+ return [[[NSScreen screens] firstObject] frame]; |
} |
}; |