Index: ui/snapshot/snapshot_mac.mm |
diff --git a/ui/snapshot/snapshot_mac.mm b/ui/snapshot/snapshot_mac.mm |
index 58337046fb83dcdce49f2f56770ee1d574b4aeec..5a0c6d6ab2d2ce860e753988e55a077f3c1966a2 100644 |
--- a/ui/snapshot/snapshot_mac.mm |
+++ b/ui/snapshot/snapshot_mac.mm |
@@ -41,9 +41,11 @@ bool GrabViewSnapshot(gfx::NativeView view, |
png_representation->clear(); |
- base::mac::ScopedCFTypeRef<CGImageRef> windowSnapshot(CGWindowListCreateImage( |
- screen_snapshot_bounds.ToCGRect(), kCGWindowListOptionIncludingWindow, |
- [window windowNumber], kCGWindowImageBoundsIgnoreFraming)); |
+ base::ScopedCFTypeRef<CGImageRef> windowSnapshot( |
+ CGWindowListCreateImage(screen_snapshot_bounds.ToCGRect(), |
+ kCGWindowListOptionIncludingWindow, |
+ [window windowNumber], |
+ kCGWindowImageBoundsIgnoreFraming)); |
if (CGImageGetWidth(windowSnapshot) <= 0) |
return false; |