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

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

Issue 2624573002: MD Settings: Internet: UI For global policy (Closed)
Patch Set: Rebase + Wrap Created 3 years, 11 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 | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('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_network_behavior.js
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js b/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js
index c0520169b3801e07e3beadb6bb132f7d64daf5c5..49cf2e2fb53359cc5f2297c0861063ba1d33fc88 100644
--- a/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js
@@ -70,13 +70,13 @@ var CrPolicyNetworkBehavior = {
},
/**
- * @param {String} source
+ * @param {string|undefined} source
* @return {boolean}
* @private
*/
isPolicySource: function(source) {
- return source == CrOnc.Source.DEVICE_POLICY ||
- source == CrOnc.Source.USER_POLICY;
+ return !!source && (source == CrOnc.Source.DEVICE_POLICY ||
+ source == CrOnc.Source.USER_POLICY);
},
/**
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698