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

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

Issue 2528803002: MD Settings: Internet: Add/fix remaining policy items (Closed)
Patch Set: . Created 4 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
Index: ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js b/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
index d3ca5f4dcaaf0a2b67f9585815db13e9cb744cda..bc3cabe6129bda722bf4e0b6ea53874d61672bbc 100644
--- a/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js
@@ -77,9 +77,10 @@ Polymer({
* @private
*/
getTooltip_: function(type, property, recommended) {
- if (type == CrPolicyIndicatorType.NONE || typeof property != 'object')
Dan Beam 2016/11/29 05:25:34 wait, how could this possibly not be an object acc
stevenjb 2016/11/30 22:58:19 Oh, it can't, I should have realized that. This pr
+ if (type == CrPolicyIndicatorType.NONE)
return '';
- if (type == CrPolicyIndicatorType.RECOMMENDED) {
+ if (type == CrPolicyIndicatorType.RECOMMENDED &&
+ typeof property == 'object') {
var value = property.Active;
if (value == undefined && property.Effective)
value = property[property.Effective];

Powered by Google App Engine
This is Rietveld 408576698