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

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

Issue 1477963002: dom-if cr-policy-pref-indicator in settings_checkbox/input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_560432_settings_benchmark_2c_test
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_input.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/controls/settings_checkbox.html
diff --git a/chrome/browser/resources/settings/controls/settings_checkbox.html b/chrome/browser/resources/settings/controls/settings_checkbox.html
index 1e5b2cf1f1aa12e028bae034a4f8c633569f7800..5c30da8fc8b542b8783bd694632fc2bf6af2efef 100644
--- a/chrome/browser/resources/settings/controls/settings_checkbox.html
+++ b/chrome/browser/resources/settings/controls/settings_checkbox.html
@@ -18,7 +18,9 @@
<div id="mainLabel">{{label}}</div>
<div id="subLabel">{{subLabel}}</div>
</paper-checkbox>
- <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
+ <template is="dom-if" if="[[pref.policySource]]">
+ <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
+ </template>
</div>
</template>
<script src="settings_checkbox.js"></script>
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698