| 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
|
|
|