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

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: Making ExceptionsList.allowEdit_ a private member. 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/content_settings_exceptions_area.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..78f79e0bbfc70b0e3cf377c4d1906bdf5d6fd906 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,
+ allowUserExceptions) {
+ // Update exceptions UI window.
+ this.getExceptionsList(type, 'normal').setAllowEdit(allowUserExceptions);
+ };
+
+ /**
* 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/content_settings_exceptions_area.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698