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 30, 2019
1 parent 65bec32 commit a8d2c71
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a8d2c71

Please sign in to comment.