Index: ui/gfx/mac/scoped_cocoa_disable_screen_updates.h |
diff --git a/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h b/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h |
index e431ecd586b08b2001318db2b73227453882ea08..b20492cf197e97572dfbe6cc8b1e1e6818f8bd6c 100644 |
--- a/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h |
+++ b/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h |
@@ -20,7 +20,7 @@ namespace gfx { |
class ScopedCocoaDisableScreenUpdates { |
public: |
ScopedCocoaDisableScreenUpdates() { |
- if (base::mac::IsOSElCapitanOrLater()) { |
+ if (base::mac::IsAtLeastOS10_11()) { |
// Beginning with OS X 10.11, [NSAnimationContext beginGrouping] is the |
// preferred way of disabling screen updates. Use of |
// NSDisableScreenUpdates() is discouraged. |
@@ -30,7 +30,7 @@ class ScopedCocoaDisableScreenUpdates { |
} |
} |
~ScopedCocoaDisableScreenUpdates() { |
- if (base::mac::IsOSElCapitanOrLater()) { |
+ if (base::mac::IsAtLeastOS10_11()) { |
[NSAnimationContext endGrouping]; |
} else { |
NSEnableScreenUpdates(); |