Index: chrome/browser/ui/cocoa/autofill/autofill_section_container.mm |
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm b/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm |
index c4945fd6642fb904b5f184f4ff07c8f8c1ec9746..40584c30203dfeaf48797392eaa252d8ff124163 100644 |
--- a/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm |
@@ -406,7 +406,7 @@ bool ShouldOverwriteComboboxes(autofill::DialogSection section, |
[[field window] convertBaseToScreen:textFrameInScreen.origin]; |
// And adjust for gfx::Rect being flipped compared to OSX coordinates. |
- NSScreen* screen = [[NSScreen screens] objectAtIndex:0]; |
+ NSScreen* screen = [[NSScreen screens] firstObject]; |
textFrameInScreen.origin.y = |
NSMaxY([screen frame]) - NSMaxY(textFrameInScreen); |
gfx::Rect textFrameRect(NSRectToCGRect(textFrameInScreen)); |