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

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

Issue 2696903005: Move common cr-policy-indicator behavior into CrPolicyIndicatorBehavior (Closed)
Patch Set: remove behavior from Settings controls that have indicators 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/controlled_button.js
diff --git a/chrome/browser/resources/settings/controls/controlled_button.js b/chrome/browser/resources/settings/controls/controlled_button.js
index d1b97231b589064ca4a4d9aa74c0da9445c3a6aa..a1188763ef8cfb9e70765a92e45b143f925dae91 100644
--- a/chrome/browser/resources/settings/controls/controlled_button.js
+++ b/chrome/browser/resources/settings/controls/controlled_button.js
@@ -6,7 +6,6 @@ Polymer({
is: 'controlled-button',
behaviors: [
- CrPolicyIndicatorBehavior,
CrPolicyPrefBehavior,
PrefControlBehavior,
],
@@ -43,16 +42,4 @@ Polymer({
e.preventDefault();
e.stopPropagation();
},
-
- /**
- * @param {!chrome.settingsPrivate.PrefObject} pref
- * @return {boolean} Whether to show a controlled by indicator.
- * @private
- */
- showIndicator_: function(pref) {
- if (!pref.controlledBy || !pref.enforcement)
- return false;
- var indicator = this.getIndicatorType(pref.controlledBy, pref.enforcement);
- return this.isIndicatorVisible(indicator);
- },
});

Powered by Google App Engine
This is Rietveld 408576698