Merge the logic of managing ViewsDelegate
This commit is contained in:
parent
9bc79f840e
commit
1c6c75da4f
4 changed files with 12 additions and 18 deletions
|
@ -43,10 +43,6 @@
|
|||
#include "ui/wm/core/wm_state.h"
|
||||
#endif
|
||||
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
#include "brightray/browser/views/views_delegate.h"
|
||||
#endif
|
||||
|
||||
#if defined(USE_X11)
|
||||
#include "base/environment.h"
|
||||
#include "base/nix/xdg_util.h"
|
||||
|
@ -209,10 +205,6 @@ void BrowserMainParts::ToolkitInitialized() {
|
|||
wm_state_.reset(new wm::WMState);
|
||||
#endif
|
||||
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
views_delegate_.reset(new ViewsDelegate);
|
||||
#endif
|
||||
|
||||
#if defined(OS_WIN)
|
||||
gfx::PlatformFontWin::adjust_font_callback = &AdjustUIFont;
|
||||
gfx::PlatformFontWin::get_minimum_font_size_callback = &GetMinimumFontSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue