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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 2288003002: Delete IsAtLeastOS10_9() and IsAtMostOS10_9() (Closed)
Patch Set: Created 4 years, 4 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: chrome/browser/ui/cocoa/browser_window_controller_private.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index 36f13de383fb707a7e371ba3babf860741bda3a2..2c6df7b0f07b5af03db7fd5a43adf12e13235bba 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -1114,7 +1114,7 @@ willPositionSheet:(NSWindow*)sheet
}
+ (BOOL)systemSettingsRequireMavericksAppKitFullscreenHack {
- if (!base::mac::IsOS10_9())
+ if (base::mac::IsAtLeastOS10_10())
Mark Mentovai 2016/08/29 17:57:56 I think that this kind of thing really was 10.9-sp
return NO;
return [NSScreen respondsToSelector:@selector(screensHaveSeparateSpaces)] &&
[NSScreen screensHaveSeparateSpaces];
@@ -1133,7 +1133,7 @@ willPositionSheet:(NSWindow*)sheet
- (BOOL)shouldUseCustomAppKitFullscreenTransition:(BOOL)enterFullScreen {
// Disable the custom exit animation in OSX 10.9: http://crbug.com/526327#c3.
- if (base::mac::IsOS10_9() && !enterFullScreen)
+ if (!base::mac::IsAtLeastOS10_10() && !enterFullScreen)
return NO;
NSView* root = [[self.window contentView] superview];

Powered by Google App Engine
This is Rietveld 408576698