Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: ui/gfx/color_profile_mac_unittest.mm

Issue 1380083005: Mac: Use [NSArray firstObject] for [NSScreen screens] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/cocoa/events_mac_unittest.mm ('k') | ui/gfx/mac/coordinate_conversion.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
}
};
« no previous file with comments | « ui/events/cocoa/events_mac_unittest.mm ('k') | ui/gfx/mac/coordinate_conversion.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698