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

Unified Diff: ui/views/mus/native_widget_mus.cc

Issue 2483683002: Try to get rid of all direct references to particular native themes. (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
« no previous file with comments | « ui/native_theme/native_theme_win.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index bfce92136a3e543ab7ce4bb89e6533b7ddb9f097..1856d4606475dd41c2e96afdccd75433b6ef6c3b 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -38,7 +38,7 @@
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/path.h"
-#include "ui/native_theme/native_theme_aura.h"
+#include "ui/native_theme/native_theme.h"
#include "ui/platform_window/platform_window_delegate.h"
#include "ui/views/corewm/tooltip.h"
#include "ui/views/corewm/tooltip_aura.h"
@@ -1315,7 +1315,7 @@ void NativeWidgetMus::SetVisibilityAnimationTransition(
}
ui::NativeTheme* NativeWidgetMus::GetNativeTheme() const {
- return ui::NativeThemeAura::instance();
+ return ui::NativeTheme::GetInstanceForNativeUi();
}
void NativeWidgetMus::OnRootViewLayout() {
« no previous file with comments | « ui/native_theme/native_theme_win.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698