mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 09:37:37 +01:00
5ef0fb8ac8
- SSE3 is now required on x86 processors (see https://crbug.com/1123353).
69 lines
2.6 KiB
Diff
69 lines
2.6 KiB
Diff
diff --git chrome/browser/content_settings/host_content_settings_map_factory.cc chrome/browser/content_settings/host_content_settings_map_factory.cc
|
|
index cf62b79358e1..4fe90fde38ff 100644
|
|
--- chrome/browser/content_settings/host_content_settings_map_factory.cc
|
|
+++ chrome/browser/content_settings/host_content_settings_map_factory.cc
|
|
@@ -8,6 +8,7 @@
|
|
|
|
#include "base/feature_list.h"
|
|
#include "build/buildflag.h"
|
|
+#include "cef/libcef/features/runtime.h"
|
|
#include "chrome/browser/content_settings/one_time_geolocation_permission_provider.h"
|
|
#include "chrome/browser/profiles/off_the_record_profile_impl.h"
|
|
#include "chrome/browser/profiles/profile.h"
|
|
@@ -21,6 +22,10 @@
|
|
#include "extensions/buildflags/buildflags.h"
|
|
#include "ui/webui/webui_allowlist_provider.h"
|
|
|
|
+#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"
|
|
@@ -49,8 +54,14 @@ HostContentSettingsMapFactory::HostContentSettingsMapFactory()
|
|
DependsOn(SupervisedUserSettingsServiceFactory::GetInstance());
|
|
#endif
|
|
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
+ if (!cef::IsAlloyRuntimeEnabled() || extensions::ExtensionsEnabled()) {
|
|
+#endif
|
|
DependsOn(
|
|
extensions::ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
+ }
|
|
+#endif
|
|
#endif
|
|
}
|
|
|
|
@@ -108,10 +119,16 @@ scoped_refptr<RefcountedKeyedService>
|
|
}
|
|
|
|
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
+ if (!cef::IsAlloyRuntimeEnabled() || extensions::ExtensionsEnabled()) {
|
|
+#endif
|
|
// These must be registered before before the HostSettings are passed over to
|
|
// the IOThread. Simplest to do this on construction.
|
|
extensions::ExtensionService::RegisterContentSettings(settings_map.get(),
|
|
profile);
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
+ }
|
|
+#endif
|
|
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
|
#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
|
|
SupervisedUserSettingsService* supervised_service =
|
|
diff --git components/content_settings/renderer/content_settings_agent_impl.cc components/content_settings/renderer/content_settings_agent_impl.cc
|
|
index b6b38ab9a251..048c6f8c544f 100644
|
|
--- components/content_settings/renderer/content_settings_agent_impl.cc
|
|
+++ components/content_settings/renderer/content_settings_agent_impl.cc
|
|
@@ -172,7 +172,7 @@ ContentSetting GetContentSettingFromRulesImpl(
|
|
return rule.GetContentSetting();
|
|
}
|
|
}
|
|
- NOTREACHED();
|
|
+ // NOTREACHED();
|
|
return CONTENT_SETTING_DEFAULT;
|
|
}
|
|
|