Fix crash when high contrast themes are enabled (issue #2508)
This commit is contained in:
parent
4c165056e1
commit
13f506f92a
|
@ -33,6 +33,7 @@
|
||||||
#include "extensions/common/constants.h"
|
#include "extensions/common/constants.h"
|
||||||
#include "net/base/net_module.h"
|
#include "net/base/net_module.h"
|
||||||
#include "services/service_manager/embedder/result_codes.h"
|
#include "services/service_manager/embedder/result_codes.h"
|
||||||
|
#include "ui/base/material_design/material_design_controller.h"
|
||||||
#include "ui/base/resource/resource_bundle.h"
|
#include "ui/base/resource/resource_bundle.h"
|
||||||
|
|
||||||
#if defined(USE_AURA)
|
#if defined(USE_AURA)
|
||||||
|
@ -150,6 +151,8 @@ void CefBrowserMainParts::PreMainMessageLoopRun() {
|
||||||
display::Screen::SetScreenInstance(views::CreateDesktopScreen());
|
display::Screen::SetScreenInstance(views::CreateDesktopScreen());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ui::MaterialDesignController::Initialize();
|
||||||
|
|
||||||
// CEF's profile is a BrowserContext.
|
// CEF's profile is a BrowserContext.
|
||||||
PreProfileInit();
|
PreProfileInit();
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#include "pdf/pdf_ppapi.h"
|
#include "pdf/pdf_ppapi.h"
|
||||||
#include "services/service_manager/sandbox/switches.h"
|
#include "services/service_manager/sandbox/switches.h"
|
||||||
#include "ui/base/layout.h"
|
#include "ui/base/layout.h"
|
||||||
#include "ui/base/material_design/material_design_controller.h"
|
|
||||||
#include "ui/base/resource/resource_bundle.h"
|
#include "ui/base/resource/resource_bundle.h"
|
||||||
#include "ui/base/ui_base_paths.h"
|
#include "ui/base/ui_base_paths.h"
|
||||||
#include "ui/base/ui_base_switches.h"
|
#include "ui/base/ui_base_switches.h"
|
||||||
|
|
Loading…
Reference in New Issue