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

Unified Diff: chrome/browser/resources/settings/controls/settings_input.js

Issue 2696903005: Move common cr-policy-indicator behavior into CrPolicyIndicatorBehavior (Closed)
Patch Set: rebase Created 3 years, 10 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/settings/controls/settings_input.js
diff --git a/chrome/browser/resources/settings/controls/settings_input.js b/chrome/browser/resources/settings/controls/settings_input.js
index 2652db1763bc0829117c9cedc4143789843170b0..0bee8236aab2bf402512288cf0fa9bf4bc7e9932 100644
--- a/chrome/browser/resources/settings/controls/settings_input.js
+++ b/chrome/browser/resources/settings/controls/settings_input.js
@@ -119,11 +119,10 @@ Polymer({
/**
* @param {boolean} disabled
- * @param {!chrome.settingsPrivate.PrefObject} pref
* @return {boolean} Whether the element should be disabled.
* @private
*/
- isDisabled_: function(disabled, pref) {
- return disabled || this.isPrefPolicyControlled(pref);
+ isDisabled_: function(disabled) {
+ return disabled || this.isPrefPolicyControlled();
},
});

Powered by Google App Engine
This is Rietveld 408576698