| Index: ui/views/controls/menu/menu_config_win.cc
|
| diff --git a/ui/views/controls/menu/menu_config_win.cc b/ui/views/controls/menu/menu_config_win.cc
|
| index 3f17f58252796e48513fa6a508e05746cbc15e03..0b69567480dfc8f04141edc64c467a152a5d8a74 100644
|
| --- a/ui/views/controls/menu/menu_config_win.cc
|
| +++ b/ui/views/controls/menu/menu_config_win.cc
|
| @@ -13,7 +13,6 @@
|
| #include "base/win/win_util.h"
|
| #include "ui/base/l10n/l10n_util_win.h"
|
| #include "ui/gfx/color_utils.h"
|
| -#include "ui/native_theme/native_theme_aura.h"
|
| #include "ui/native_theme/native_theme_win.h"
|
|
|
| using ui::NativeTheme;
|
| @@ -21,12 +20,7 @@ using ui::NativeThemeWin;
|
|
|
| namespace views {
|
|
|
| -void MenuConfig::Init(const NativeTheme* theme) {
|
| - if (theme == ui::NativeThemeAura::instance()) {
|
| - InitAura(theme);
|
| - return;
|
| - }
|
| -
|
| +void MenuConfig::Init() {
|
| arrow_color = color_utils::GetSysSkColor(COLOR_MENUTEXT);
|
|
|
| NONCLIENTMETRICS_XP metrics;
|
| @@ -78,19 +72,4 @@ void MenuConfig::Init(const NativeTheme* theme) {
|
| separator_lower_height = 7;
|
| }
|
|
|
| -// static
|
| -const MenuConfig& MenuConfig::instance(const ui::NativeTheme* theme) {
|
| - // NOTE: |theme| may be NULL if used before the menu is running.
|
| - if (!theme || theme == NativeThemeWin::instance()) {
|
| - static MenuConfig* win_instance = NULL;
|
| - if (!win_instance)
|
| - win_instance = new MenuConfig(NativeThemeWin::instance());
|
| - return *win_instance;
|
| - }
|
| - static MenuConfig* views_instance = NULL;
|
| - if (!views_instance)
|
| - views_instance = new MenuConfig(theme);
|
| - return *views_instance;
|
| -}
|
| -
|
| } // namespace views
|
|
|