Index: ui/gfx/mac/coordinate_conversion_unittest.mm |
diff --git a/ui/gfx/mac/coordinate_conversion_unittest.mm b/ui/gfx/mac/coordinate_conversion_unittest.mm |
index ac882fa65dff57e2125b90d6f8d34fee0680d060..ccddbe81dbc3eed50f33f727312ebfab6f4d034b 100644 |
--- a/ui/gfx/mac/coordinate_conversion_unittest.mm |
+++ b/ui/gfx/mac/coordinate_conversion_unittest.mm |
@@ -48,7 +48,7 @@ class MacCoordinateConversionTest : public PlatformTest { |
void MacCoordinateConversionTest::SetUp() { |
// Before swizzling, do a sanity check that the primary screen's origin is |
// (0, 0). This should always be true. |
- NSRect primary_screen_frame = [[[NSScreen screens] objectAtIndex:0] frame]; |
+ NSRect primary_screen_frame = [[[NSScreen screens] firstObject] frame]; |
EXPECT_EQ(0, primary_screen_frame.origin.x); |
EXPECT_EQ(0, primary_screen_frame.origin.y); |
@@ -57,7 +57,7 @@ void MacCoordinateConversionTest::SetUp() { |
[MacCoordinateConversionTestScreenDonor class], |
@selector(frame))); |
- primary_screen_frame = [[[NSScreen screens] objectAtIndex:0] frame]; |
+ primary_screen_frame = [[[NSScreen screens] firstObject] frame]; |
EXPECT_EQ(kTestWidth, primary_screen_frame.size.width); |
EXPECT_EQ(kTestHeight, primary_screen_frame.size.height); |
} |