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

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

Issue 2696903005: Move common cr-policy-indicator behavior into CrPolicyIndicatorBehavior (Closed)
Patch Set: rename hasPolicy 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.html
diff --git a/chrome/browser/resources/settings/controls/controlled_button.html b/chrome/browser/resources/settings/controls/controlled_button.html
index 7f4e69d4bded78e4317fee1dea523a7e3220b356..b053b26607754bdc21f21c2f85035fd2bd6dde2e 100644
--- a/chrome/browser/resources/settings/controls/controlled_button.html
+++ b/chrome/browser/resources/settings/controls/controlled_button.html
@@ -1,7 +1,6 @@
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
-<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicator_behavior.html">
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_behavior.html">
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html">
<link rel="import" href="pref_control_behavior.html">
@@ -43,7 +42,7 @@
<content></content>
</paper-button>
- <template is="dom-if" if="[[showIndicator_(pref)]]" restamp>
+ <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp>
dschuyler 2017/02/28 19:42:40 Let's make this more general by dropping the "Poli
stevenjb 2017/02/28 20:04:37 May I suggest that if we do any significant renami
michaelpg 2017/02/28 21:55:49 Acknowledged.
<cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_">
</cr-policy-pref-indicator>
</template>

Powered by Google App Engine
This is Rietveld 408576698