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

Unified Diff: ui/gfx/mac/nswindow_frame_controls.mm

Issue 1917973002: mac: Remove IsOSLion(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
Index: ui/gfx/mac/nswindow_frame_controls.mm
diff --git a/ui/gfx/mac/nswindow_frame_controls.mm b/ui/gfx/mac/nswindow_frame_controls.mm
index e1983daa2d25a9c0b7d6def9bcdf6a00b7d32cc3..0663dfdaf5e7ac25574088f01987cd65f9c70a6e 100644
--- a/ui/gfx/mac/nswindow_frame_controls.mm
+++ b/ui/gfx/mac/nswindow_frame_controls.mm
@@ -84,11 +84,8 @@ void ApplyNSWindowSizeConstraints(NSWindow* window,
SetResizableStyleMask(window, can_resize);
[window setShowsResizeIndicator:can_resize];
- // Set the window to participate in Lion Fullscreen mode. Setting this flag
- // has no effect on Snow Leopard or earlier. UI controls for fullscreen are
- // only shown for windows that have unbounded size.
- if (base::mac::IsOSLionOrLater())
- SetNSWindowCanFullscreen(window, can_fullscreen);
+ // Set the window to participate in Lion Fullscreen mode.
+ SetNSWindowCanFullscreen(window, can_fullscreen);
[[window standardWindowButton:NSWindowZoomButton] setEnabled:can_fullscreen];
}

Powered by Google App Engine
This is Rietveld 408576698