Skip to content

Commit

Permalink
Disable motion sensors by default (fixes brave/brave-browser#4789)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Sep 30, 2019
1 parent a8d2c71 commit 2026542
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@
ContentSettingsInfo::INHERIT_IN_INCOGNITO, \
ContentSettingsInfo::PERSISTENT, \
ContentSettingsInfo::EXCEPTIONS_ON_SECURE_ORIGINS_ONLY); \
\
/* Disable motion sensors by default (brave/brave-browser#4789)*/ \
content_settings_info_.erase(CONTENT_SETTINGS_TYPE_SENSORS); \
website_settings_registry_->UnRegister(CONTENT_SETTINGS_TYPE_SENSORS); \
Register( \
CONTENT_SETTINGS_TYPE_SENSORS, "sensors", 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_AND_INSECURE_ORIGINS); \
}

#include "../../../../../../components/content_settings/core/browser/content_settings_registry.cc"
Expand Down

0 comments on commit 2026542

Please sign in to comment.