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

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

Issue 7342009: Show a different banner in chrome://settings for extension-controlled settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 5 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 2790f3f64a16db04717b2fac8fefa8541c2b25c7..34a75b54dc04c8c1182e7e359df5ea47684b475b 100644
--- a/chrome/browser/resources/options/content_settings.js
+++ b/chrome/browser/resources/options/content_settings.js
@@ -82,8 +82,9 @@ cr.define('options', function() {
var radios = document.querySelectorAll('input[type=radio][name=' +
group + ']');
for (var i = 0, len = radios.length; i < len; i++) {
- radios[i].disabled = dict[group]['managed'];
- radios[i].managed = dict[group]['managed'];
+ var managed = dict[group]['managed'];
+ radios[i].disabled = managed;
+ radios[i].controlledBy = managed ? 'policy': null;
}
}
OptionsPage.updateManagedBannerVisibility();
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/resources/options/content_settings_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698