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

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: tapted 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
« no previous file with comments | « ui/gfx/font_fallback_mac.mm ('k') | ui/gl/gpu_switching_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..133aae6cf7a7ad37ae005fc90ca1c650128b3a37 100644
--- a/ui/gfx/mac/nswindow_frame_controls.mm
+++ b/ui/gfx/mac/nswindow_frame_controls.mm
@@ -4,7 +4,6 @@
#import "ui/gfx/mac/nswindow_frame_controls.h"
-#import "base/mac/mac_util.h"
#import "base/mac/sdk_forward_declarations.h"
#include "ui/gfx/geometry/size.h"
@@ -84,11 +83,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];
}
« no previous file with comments | « ui/gfx/font_fallback_mac.mm ('k') | ui/gl/gpu_switching_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698