diff --git a/chromium_src/components/content_settings/core/browser/content_settings_registry.cc b/chromium_src/components/content_settings/core/browser/content_settings_registry.cc index 1259aec10801..17ca8fa5c343 100644 --- a/chromium_src/components/content_settings/core/browser/content_settings_registry.cc +++ b/chromium_src/components/content_settings/core/browser/content_settings_registry.cc @@ -34,6 +34,22 @@ ContentSettingsInfo::INHERIT_IN_INCOGNITO, \ ContentSettingsInfo::EPHEMERAL, \ ContentSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS); \ + \ + /* Disable background sync by default (brave/brave-browser#4709)*/ \ + content_settings_info_.erase(CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC); \ + website_settings_registry_->UnRegister( \ + CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC); \ + Register( \ + CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, "background-sync", \ + CONTENT_SETTING_BLOCK, WebsiteSettingsInfo::UNSYNCABLE, \ + WhitelistedSchemes(), \ + ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK), \ + WebsiteSettingsInfo::SINGLE_ORIGIN_ONLY_SCOPE, \ + WebsiteSettingsRegistry::DESKTOP | \ + WebsiteSettingsRegistry::PLATFORM_ANDROID, \ + ContentSettingsInfo::INHERIT_IN_INCOGNITO, \ + ContentSettingsInfo::PERSISTENT, \ + ContentSettingsInfo::EXCEPTIONS_ON_SECURE_ORIGINS_ONLY); \ } #include "../../../../../../components/content_settings/core/browser/content_settings_registry.cc"