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

Unified Diff: ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js

Issue 2683613003: MD Settings: Fix timezone autodetect policy indicator. (Closed)
Patch Set: Use getter instead of private state. 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
« no previous file with comments | « ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js b/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
index dcb58c425f3253a9db5dc88c38f1dc26607f2ced..5526eb54d0eaef62e5056b4c1d63994bf6a4478b 100644
--- a/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
@@ -40,5 +40,12 @@ Polymer({
var matches = pref && pref.value == pref.recommendedValue;
return this.getPolicyIndicatorTooltip(
type, pref.controlledByName || '', matches);
- }
+ },
+
+ /**
+ * @return {boolean} Whether the policy indicator is on. Useful for testing.
+ */
+ isActive: function() {
+ return this.isIndicatorVisible(this.indicatorType);
+ },
});
« no previous file with comments | « ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698