2020-01-06 13:20:26 +01:00
|
|
|
diff --git chrome/browser/themes/theme_service_factory.cc chrome/browser/themes/theme_service_factory.cc
|
2020-06-09 19:48:00 +02:00
|
|
|
index caec77bbe3ba..1640307eef65 100644
|
2020-01-06 13:20:26 +01:00
|
|
|
--- chrome/browser/themes/theme_service_factory.cc
|
|
|
|
+++ chrome/browser/themes/theme_service_factory.cc
|
2020-06-09 19:48:00 +02:00
|
|
|
@@ -6,6 +6,7 @@
|
|
|
|
|
2020-03-04 01:29:39 +01:00
|
|
|
#include "base/no_destructor.h"
|
2020-01-06 13:20:26 +01:00
|
|
|
#include "build/build_config.h"
|
|
|
|
+#include "cef/libcef/features/features.h"
|
|
|
|
#include "chrome/browser/extensions/extension_system_factory.h"
|
|
|
|
#include "chrome/browser/profiles/incognito_helpers.h"
|
|
|
|
#include "chrome/browser/profiles/profile.h"
|
2020-06-09 19:48:00 +02:00
|
|
|
@@ -41,6 +42,10 @@ const ThemeHelper& GetThemeHelper() {
|
2020-03-04 01:29:39 +01:00
|
|
|
|
|
|
|
} // namespace
|
2020-01-06 13:20:26 +01:00
|
|
|
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+#include "cef/libcef/common/extensions/extensions_util.h"
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
// static
|
|
|
|
ThemeService* ThemeServiceFactory::GetForProfile(Profile* profile) {
|
|
|
|
return static_cast<ThemeService*>(
|
2020-06-09 19:48:00 +02:00
|
|
|
@@ -70,7 +75,13 @@ ThemeServiceFactory::ThemeServiceFactory()
|
2020-01-06 13:20:26 +01:00
|
|
|
BrowserContextDependencyManager::GetInstance()) {
|
|
|
|
DependsOn(extensions::ExtensionRegistryFactory::GetInstance());
|
|
|
|
DependsOn(extensions::ExtensionPrefsFactory::GetInstance());
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+ if (extensions::ExtensionsEnabled()) {
|
|
|
|
+#endif
|
|
|
|
DependsOn(extensions::ExtensionSystemFactory::GetInstance());
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
ThemeServiceFactory::~ThemeServiceFactory() {}
|