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

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: cs_ui 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 259e06c9807adb2951678ff7caea6dc78d3b763e..e73ecb072b3e4ef238baaf9f58b5588c0fbe63fe 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
@@ -46,6 +46,7 @@ var prefsEmpty = {
notifications: '',
plugins: '',
popups: '',
+ subresource_filter: '',
unsandboxed_plugins: '',
},
exceptions: {
@@ -60,6 +61,7 @@ var prefsEmpty = {
notifications: [],
plugins: [],
popups: [],
+ subresource_filter: [],
unsandboxed_plugins: [],
},
};
@@ -223,6 +225,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);
}
@@ -266,6 +271,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