summaryrefslogtreecommitdiffstats
path: root/chrome/common/content_settings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/content_settings.cc')
-rw-r--r--chrome/common/content_settings.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/content_settings.cc b/chrome/common/content_settings.cc
index 8b28f4b..cd30d6c 100644
--- a/chrome/common/content_settings.cc
+++ b/chrome/common/content_settings.cc
@@ -10,6 +10,16 @@ ContentSetting IntToContentSetting(int content_setting) {
CONTENT_SETTING_DEFAULT : static_cast<ContentSetting>(content_setting);
}
+ContentSettings::ContentSettings() {
+ for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i)
+ settings[i] = CONTENT_SETTING_DEFAULT;
+}
+
+ContentSettings::ContentSettings(ContentSetting default_setting) {
+ for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i)
+ settings[i] = default_setting;
+}
+
ContentSettingPatternSource::ContentSettingPatternSource(
const ContentSettingsPattern& primary_pattern,
const ContentSettingsPattern& secondary_pattern,