summaryrefslogtreecommitdiffstats
path: root/chrome/common/content_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/content_settings.h')
-rw-r--r--chrome/common/content_settings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/content_settings.h b/chrome/common/content_settings.h
index 3e798b3..63af52e 100644
--- a/chrome/common/content_settings.h
+++ b/chrome/common/content_settings.h
@@ -24,6 +24,11 @@ struct ContentSettings {
settings[i] = CONTENT_SETTING_DEFAULT;
}
+ explicit ContentSettings(ContentSetting default_setting) {
+ for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i)
+ settings[i] = default_setting;
+ }
+
ContentSetting settings[CONTENT_SETTINGS_NUM_TYPES];
};