Skip to content

Commit

Permalink
Disable background-sync by default (fixes brave/brave-browser#4709)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Sep 12, 2019
1 parent fe9b1ad commit 41a7077
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 41a7077

Please sign in to comment.