diff options
author | raymes <raymes@chromium.org> | 2015-07-28 00:19:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-28 07:20:52 +0000 |
commit | 7989563b9c827f01950c8e72d2d44fff1cae8d79 (patch) | |
tree | 8c679c4f5434bf580d8e916bd17e73efa0dca49a /components/components_tests.gyp | |
parent | fb5d24159dc83fc2c28e35e008bdaa481406c32a (diff) | |
download | chromium_src-7989563b9c827f01950c8e72d2d44fff1cae8d79.zip chromium_src-7989563b9c827f01950c8e72d2d44fff1cae8d79.tar.gz chromium_src-7989563b9c827f01950c8e72d2d44fff1cae8d79.tar.bz2 |
Add a WebsiteSettingsRegistry and use it to store website settings type names
Right now we have a bunch of arrays lying around the codebase which map
ContentSettingsTypes to various properties of website settings. When a user
adds a new setting, they have to modify each of these maps. We should
consolidate these into a single object which is registered on startup and
contains all properties of website settings.
This CL introduces a WebsiteSettingsRegistry to where website settings are
registered with these properties in WebsiteSettingsInfo objects. Currently
only the ContentSettingsType and string name of the setting are stored.
Two locations in the codebase which previously had separate arrays listing
the string names for each content setting have been changed to use the
WebsiteSettingsRegistry instead.
In followup CLs more properties will be moved into WebsiteSettingsInfo.
BUG=512683
Review URL: https://codereview.chromium.org/1247253003
Cr-Commit-Position: refs/heads/master@{#340651}
Diffstat (limited to 'components/components_tests.gyp')
-rw-r--r-- | components/components_tests.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/components_tests.gyp b/components/components_tests.gyp index bbfd4ed..246ff17 100644 --- a/components/components_tests.gyp +++ b/components/components_tests.gyp @@ -104,6 +104,7 @@ 'content_settings/core/browser/content_settings_utils_unittest.cc', 'content_settings/core/browser/cookie_settings_unittest.cc', 'content_settings/core/browser/plugins_field_trial_unittest.cc', + 'content_settings/core/browser/website_settings_registry_unittest.cc', 'content_settings/core/common/content_settings_pattern_parser_unittest.cc', 'content_settings/core/common/content_settings_pattern_unittest.cc', ], |