2018-02-02 23:43:33 +01:00
|
|
|
diff --git chrome/browser/content_settings/host_content_settings_map_factory.cc chrome/browser/content_settings/host_content_settings_map_factory.cc
|
2019-11-12 17:11:44 +01:00
|
|
|
index ac6b3488a4d8..82edf3f9eeec 100644
|
2018-02-02 23:43:33 +01:00
|
|
|
--- chrome/browser/content_settings/host_content_settings_map_factory.cc
|
|
|
|
+++ chrome/browser/content_settings/host_content_settings_map_factory.cc
|
|
|
|
@@ -7,6 +7,7 @@
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#include "base/feature_list.h"
|
|
|
|
+#include "cef/libcef/features/features.h"
|
|
|
|
#include "chrome/browser/profiles/off_the_record_profile_impl.h"
|
|
|
|
#include "chrome/browser/profiles/profile.h"
|
2018-05-20 15:51:42 +02:00
|
|
|
#include "chrome/browser/search_engines/template_url_service_factory.h"
|
|
|
|
@@ -17,6 +18,10 @@
|
2018-02-02 23:43:33 +01:00
|
|
|
#include "content/public/browser/browser_thread.h"
|
2018-04-19 17:44:42 +02:00
|
|
|
#include "extensions/buildflags/buildflags.h"
|
2018-02-02 23:43:33 +01:00
|
|
|
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+#include "cef/libcef/common/extensions/extensions_util.h"
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
|
#include "chrome/browser/extensions/extension_service.h"
|
|
|
|
#include "extensions/browser/extension_system.h"
|
2019-11-12 17:11:44 +01:00
|
|
|
@@ -45,8 +50,14 @@ HostContentSettingsMapFactory::HostContentSettingsMapFactory()
|
2018-02-02 23:43:33 +01:00
|
|
|
DependsOn(SupervisedUserSettingsServiceFactory::GetInstance());
|
|
|
|
#endif
|
|
|
|
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+ if (extensions::ExtensionsEnabled()) {
|
|
|
|
+#endif
|
|
|
|
DependsOn(
|
|
|
|
extensions::ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2019-11-12 17:11:44 +01:00
|
|
|
@@ -86,10 +97,16 @@ scoped_refptr<RefcountedKeyedService>
|
2018-09-04 11:43:21 +02:00
|
|
|
base::FeatureList::IsEnabled(features::kPermissionDelegation)));
|
2018-02-02 23:43:33 +01:00
|
|
|
|
|
|
|
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+ if (extensions::ExtensionsEnabled()) {
|
|
|
|
+#endif
|
|
|
|
// These must be registered before before the HostSettings are passed over to
|
|
|
|
// the IOThread. Simplest to do this on construction.
|
2018-06-08 18:53:10 +02:00
|
|
|
extensions::ExtensionService::RegisterContentSettings(settings_map.get(),
|
|
|
|
profile);
|
2018-02-02 23:43:33 +01:00
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
|
#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
|
|
|
|
SupervisedUserSettingsService* supervised_service =
|