Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3222)

Unified Diff: chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js

Issue 2682293002: Add desktop UI for the subresource filter content setting. (Closed)
Patch Set: comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
diff --git a/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js b/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
index 6fe9b1ca4a670e19f9e30d280c432135acc73109..bc6ffbfe87f67a37af70276d8c867bc138a7ca41 100644
--- a/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
+++ b/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
@@ -19,6 +19,7 @@ var prefsEmpty = {
notifications: '',
plugins: '',
popups: '',
+ subresource_filter: '',
unsandboxed_plugins: '',
},
exceptions: {
@@ -33,6 +34,7 @@ var prefsEmpty = {
notifications: [],
plugins: [],
popups: [],
+ subresource_filter: [],
unsandboxed_plugins: [],
},
};
@@ -184,6 +186,9 @@ TestSiteSettingsPrefsBrowserProxy.prototype = {
} else if (
contentType == settings.ContentSettingsTypes.UNSANDBOXED_PLUGINS) {
pref = this.prefs_.defaults.unsandboxed_plugins;
+ }
+ else if (contentType == settings.ContentSettingsTypes.SUBRESOURCE_FILTER) {
+ pref = this.prefs_.defaults.subresource_filter;
} else {
console.log('getDefault received unknown category: ' + contentType);
}
@@ -227,6 +232,9 @@ TestSiteSettingsPrefsBrowserProxy.prototype = {
pref = this.prefs_.exceptions.popups;
else if (contentType == settings.ContentSettingsTypes.UNSANDBOXED_PLUGINS)
pref = this.prefs_.exceptions.unsandboxed_plugins;
+ else if (contentType == settings.ContentSettingsTypes.SUBRESOURCE_FILTER) {
+ pref = this.prefs_.exceptions.subresource_filter;
+ }
else
console.log('getExceptionList received unknown category: ' + contentType);

Powered by Google App Engine
This is Rietveld 408576698