| Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
| index 028c744d53dd56751ccc7c2e29262a534a056ffc..a3716da41c805f1851fda68b3c0864783e6bcc64 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
| @@ -210,7 +210,7 @@ void BrowserWindowCocoa::SetBounds(const gfx::Rect& bounds) {
|
| real_bounds.width(),
|
| real_bounds.height());
|
| // Flip coordinates based on the primary screen.
|
| - NSScreen* screen = [[NSScreen screens] objectAtIndex:0];
|
| + NSScreen* screen = [[NSScreen screens] firstObject];
|
| cocoa_bounds.origin.y =
|
| NSHeight([screen frame]) - real_bounds.height() - real_bounds.y();
|
|
|
| @@ -348,7 +348,7 @@ void BrowserWindowCocoa::ZoomChangedForActiveTab(bool can_show_bubble) {
|
|
|
| gfx::Rect BrowserWindowCocoa::GetRestoredBounds() const {
|
| // Flip coordinates based on the primary screen.
|
| - NSScreen* screen = [[NSScreen screens] objectAtIndex:0];
|
| + NSScreen* screen = [[NSScreen screens] firstObject];
|
| NSRect frame = [controller_ regularWindowFrame];
|
| gfx::Rect bounds(frame.origin.x, 0, NSWidth(frame), NSHeight(frame));
|
| bounds.set_y(NSHeight([screen frame]) - NSMaxY(frame));
|
|
|