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

Unified Diff: chrome/browser/resources/options/content_settings.js

Issue 1855393006: [Chrome Settings UI] If User Exceptions are not allowed, prevent editing / viewing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix incorrect ArrayDataModel.splice() usage. Created 4 years, 8 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/browser/resources/options/content_settings.js
diff --git a/chrome/browser/resources/options/content_settings.js b/chrome/browser/resources/options/content_settings.js
index 33cac98257f4c9a08e87a3fa3c3db94a921c6203..3d7a7ca39c2158ba61bcc5115553e4f9c856295b 100644
--- a/chrome/browser/resources/options/content_settings.js
+++ b/chrome/browser/resources/options/content_settings.js
@@ -131,6 +131,18 @@ cr.define('options', function() {
};
/**
+ * Updates UI to allow/disallow user from using exceptions for a particular
+ * content setting.
+ * @param {string} type The content settings type being updated.
+ * @param {boolean} allowUserExceptions Whether user may set exceptions.
+ */
+ ContentSettings.setUserExceptionsAllowed = function(type,
+ userExceptionsAllowed) {
+ // Update exceptions UI window.
+ this.getExceptionsList(type, 'normal').setAllowEdit(userExceptionsAllowed);
+ };
+
+ /**
* Initializes an exceptions list.
* @param {string} type The content type that we are setting exceptions for.
* @param {Array<options.Exception>} exceptions An array of pairs, where the

Powered by Google App Engine
This is Rietveld 408576698