Fix crash when high contrast themes are enabled (issue #2508)

This commit is contained in:
Marshall Greenblatt 2018-09-21 16:34:02 +02:00
parent 4c165056e1
commit 13f506f92a
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include "extensions/common/constants.h"
#include "net/base/net_module.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"
#if defined(USE_AURA)
@ -150,6 +151,8 @@ void CefBrowserMainParts::PreMainMessageLoopRun() {
display::Screen::SetScreenInstance(views::CreateDesktopScreen());
#endif
ui::MaterialDesignController::Initialize();
// CEF's profile is a BrowserContext.
PreProfileInit();

View File

@ -41,7 +41,6 @@
#include "pdf/pdf_ppapi.h"
#include "services/service_manager/sandbox/switches.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/ui_base_paths.h"
#include "ui/base/ui_base_switches.h"