diff --git a/libcef/browser/browser_main.cc b/libcef/browser/browser_main.cc index a863386a4..6a948f66f 100644 --- a/libcef/browser/browser_main.cc +++ b/libcef/browser/browser_main.cc @@ -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(); diff --git a/libcef/common/main_delegate.cc b/libcef/common/main_delegate.cc index d538c1b76..f604c0f40 100644 --- a/libcef/common/main_delegate.cc +++ b/libcef/common/main_delegate.cc @@ -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"