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

Unified Diff: chrome/browser/ui/cocoa/spinner_view.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 | « chrome/browser/ui/cocoa/gradient_button_cell.mm ('k') | chrome/browser/ui/cocoa/status_bubble_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/spinner_view.mm
diff --git a/chrome/browser/ui/cocoa/spinner_view.mm b/chrome/browser/ui/cocoa/spinner_view.mm
index ee52d1956bbb684edaa582a40b281764dbafed32..4729b1f1b28af386b46bb3d9a59974810d8ec9f5 100644
--- a/chrome/browser/ui/cocoa/spinner_view.mm
+++ b/chrome/browser/ui/cocoa/spinner_view.mm
@@ -6,7 +6,6 @@
#import <QuartzCore/QuartzCore.h>
-#include "base/mac/mac_util.h"
#include "base/mac/sdk_forward_declarations.h"
#include "base/mac/scoped_cftyperef.h"
#include "skia/ext/skia_utils_mac.h"
@@ -178,10 +177,8 @@ NSString* const kRotationAnimationName = @"RotationAnimationName";
// Make sure |shapeLayer_|'s content scale factor matches the window's
// backing depth (e.g. it's 2.0 on Retina Macs). Don't worry about adjusting
// any other layers because |shapeLayer_| is the only one displaying content.
- if (base::mac::IsOSLionOrLater()) {
- CGFloat backingScaleFactor = [[self window] backingScaleFactor];
- [shapeLayer_ setContentsScale:backingScaleFactor];
- }
+ CGFloat backingScaleFactor = [[self window] backingScaleFactor];
+ [shapeLayer_ setContentsScale:backingScaleFactor];
// Create the first half of the arc animation, where it grows from a short
// block to its full length.
« no previous file with comments | « chrome/browser/ui/cocoa/gradient_button_cell.mm ('k') | chrome/browser/ui/cocoa/status_bubble_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698