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

Unified Diff: ui/native_theme/native_theme_mac.mm

Issue 2271653006: base::mac::IsOSSierra() -> base::mac::IsOS10_12(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Nits 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
« no previous file with comments | « ui/gl/test/gl_image_test_template.h ('k') | ui/native_theme/native_theme_mac_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_mac.mm
diff --git a/ui/native_theme/native_theme_mac.mm b/ui/native_theme/native_theme_mac.mm
index 6962a704f3c471b2ab3b81b3f18d8f4f82d4c672..5f1f8d9d83cc11ef14e0c7e31ca0fec6b37b8563 100644
--- a/ui/native_theme/native_theme_mac.mm
+++ b/ui/native_theme/native_theme_mac.mm
@@ -181,8 +181,8 @@ SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const {
case kColorId_MenuBackgroundColor:
return kMenuPopupBackgroundColor;
case kColorId_MenuSeparatorColor:
- return base::mac::IsOSMavericks() ? kMenuSeparatorColorMavericks
- : kMenuSeparatorColor;
+ return base::mac::IsOS10_9() ? kMenuSeparatorColorMavericks
+ : kMenuSeparatorColor;
case kColorId_MenuBorderColor:
return kMenuBorderColor;
@@ -243,7 +243,7 @@ void NativeThemeMac::PaintMenuPopupBackground(
const MenuBackgroundExtraParams& menu_background) const {
SkPaint paint;
paint.setAntiAlias(true);
- if (base::mac::IsOSMavericks())
+ if (base::mac::IsOS10_9())
paint.setColor(kMenuPopupBackgroundColorMavericks);
else
paint.setColor(kMenuPopupBackgroundColor);
« no previous file with comments | « ui/gl/test/gl_image_test_template.h ('k') | ui/native_theme/native_theme_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698