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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.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
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 0cabe30d460a66d49e78a72b3bb06062b1227b5d..41c9db392e960b1c7e0efa4614fb462b0ccebe0a 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -202,11 +202,7 @@ void SetUpBrowserWindowCommandHandler(NSWindow* window) {
@interface NSWindow (NSPrivateApis)
// Note: These functions are private, use -[NSObject respondsToSelector:]
// before calling them.
-
-- (void)setBottomCornerRounded:(BOOL)rounded;
-
- (NSRect)_growBoxRect;
-
@end
@implementation BrowserWindowController
@@ -264,12 +260,10 @@ void SetUpBrowserWindowCommandHandler(NSWindow* window) {
// functionality appears to be leaky (or at least interacts badly with our
// architecture) and thus BrowserWindowController never gets released. This
// prevents the browser from being able to quit <http://crbug.com/79113>.
- if ([window respondsToSelector:@selector(setRestorable:)])
- [window setRestorable:NO];
+ [window setRestorable:NO];
// Get the windows to swish in on Lion.
- if ([window respondsToSelector:@selector(setAnimationBehavior:)])
- [window setAnimationBehavior:NSWindowAnimationBehaviorDocumentWindow];
+ [window setAnimationBehavior:NSWindowAnimationBehaviorDocumentWindow];
// Get the most appropriate size for the window, then enforce the
// minimum width and height. The window shim will handle flipping
@@ -1860,7 +1854,6 @@ willAnimateFromState:(BookmarkBar::State)oldState
@implementation BrowserWindowController(Fullscreen)
- (void)handleLionToggleFullscreen {
- DCHECK(base::mac::IsOSLionOrLater());
chrome::ExecuteCommand(browser_.get(), IDC_FULLSCREEN);
}

Powered by Google App Engine
This is Rietveld 408576698