| Index: ui/snapshot/snapshot_mac.mm
|
| diff --git a/ui/snapshot/snapshot_mac.mm b/ui/snapshot/snapshot_mac.mm
|
| index aa4048e2437b0dec9d163e70a33a0d98a7def57f..d1eb698b6932f8203d4222b8dbcd4ccd7be241e8 100644
|
| --- a/ui/snapshot/snapshot_mac.mm
|
| +++ b/ui/snapshot/snapshot_mac.mm
|
| @@ -20,7 +20,7 @@ bool GrabViewSnapshot(gfx::NativeView view,
|
| std::vector<unsigned char>* png_representation,
|
| const gfx::Rect& snapshot_bounds) {
|
| NSWindow* window = [view window];
|
| - NSScreen* screen = [[NSScreen screens] objectAtIndex:0];
|
| + NSScreen* screen = [[NSScreen screens] firstObject];
|
| gfx::Rect screen_bounds = gfx::Rect(NSRectToCGRect([screen frame]));
|
|
|
|
|
|
|