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

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

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 4c0128c0db598eb7e478604105bb9611727e6ee9..dcddda060b8185788b2ad561aa3e6ae86770a020 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -260,14 +260,6 @@ void SetUpBrowserWindowCommandHandler(NSWindow* window) {
// be big enough to hold all locks that'll ever be needed.
barVisibilityLocks_.reset([[NSMutableSet setWithCapacity:10] retain]);
- // Set the window to not have rounded corners, which prevents the resize
- // control from being inset slightly and looking ugly. Only bother to do
- // this on Snow Leopard; on Lion and later all windows have rounded bottom
- // corners, and this won't work anyway.
- if (base::mac::IsOSSnowLeopard() &&
- [window respondsToSelector:@selector(setBottomCornerRounded:)])
- [window setBottomCornerRounded:NO];
-
// Lion will attempt to automagically save and restore the UI. This
// functionality appears to be leaky (or at least interacts badly with our
// architecture) and thus BrowserWindowController never gets released. This

Powered by Google App Engine
This is Rietveld 408576698