From 41a707759e178cd9e11f05a946acda1e4941645f Mon Sep 17 00:00:00 2001 From: Francois Marier Date: Wed, 11 Sep 2019 15:29:26 -0700 Subject: [PATCH] Disable background-sync by default (fixes brave/brave-browser#4709) --- .../core/browser/content_settings_registry.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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..2216b5f07f56 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,19 @@ ContentSettingsInfo::INHERIT_IN_INCOGNITO, \ ContentSettingsInfo::EPHEMERAL, \ ContentSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS); \ + \ + /* Disable background sync by default (brave/brave-browser#4709)*/ \ + 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"