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

Side by Side Diff: chrome/browser/resources/settings/controls/settings_input.js

Issue 2708013003: [MD settings] show icon when content settings are controlled by an extension (Closed)
Patch Set: isPrefEnforced 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * `settings-input` is a single-line text field for user input associated 7 * `settings-input` is a single-line text field for user input associated
8 * with a pref value. 8 * with a pref value.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 }, 118 },
119 119
120 /** 120 /**
121 * @param {boolean} disabled 121 * @param {boolean} disabled
122 * @param {!chrome.settingsPrivate.PrefObject} pref 122 * @param {!chrome.settingsPrivate.PrefObject} pref
123 * @return {boolean} Whether the element should be disabled. 123 * @return {boolean} Whether the element should be disabled.
124 * @private 124 * @private
125 */ 125 */
126 isDisabled_: function(disabled, pref) { 126 isDisabled_: function(disabled, pref) {
127 return disabled || this.isPrefPolicyControlled(pref); 127 return disabled || this.isPrefEnforced(pref);
128 }, 128 },
129 }); 129 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698