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

Unified Diff: ui/native_theme/native_theme_mac.mm

Issue 2480993002: Clean up some NativeTheme code. (Closed)
Patch Set: Created 4 years, 1 month 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: 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 c6c79f7dc94eadfb475ba8917551248bc3398673..d0b304e12ce0766245510dff51425e3650f27a04 100644
--- a/ui/native_theme/native_theme_mac.mm
+++ b/ui/native_theme/native_theme_mac.mm
@@ -113,6 +113,11 @@ NativeTheme* NativeTheme::GetInstanceForWeb() {
}
// static
+NativeTheme* NativeTheme::GetInstanceForNativeUi() {
+ return NativeThemeMac::instance();
+}
+
+// static
NativeThemeMac* NativeThemeMac::instance() {
CR_DEFINE_STATIC_LOCAL(NativeThemeMac, s_native_theme, ());
return &s_native_theme;

Powered by Google App Engine
This is Rietveld 408576698