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

Unified Diff: chrome/browser/resources/settings/internet_page/network_proxy.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: chrome/browser/resources/settings/internet_page/network_proxy.js
diff --git a/chrome/browser/resources/settings/internet_page/network_proxy.js b/chrome/browser/resources/settings/internet_page/network_proxy.js
index 974de27c38904e66d76531285ca14bfb7952a91b..54d516c20250084e6515018e1ecd906d45d2fedc 100644
--- a/chrome/browser/resources/settings/internet_page/network_proxy.js
+++ b/chrome/browser/resources/settings/internet_page/network_proxy.js
@@ -346,7 +346,7 @@ Polymer({
* @return {boolean}
* @private
*/
- getShowPrefPolicyIndicator_: function() {
+ getShowExtensionPolicyIndicator_: function() {
Dan Beam 2016/11/29 05:25:34 why does this use 2 verbs? "get" AND "show"? why
stevenjb 2016/11/30 22:58:19 -> shouldShowExtensionIndicator
let property = this.getProxySettingsTypeProperty_();
return !!property && this.isExtensionControlled(property);
},
@@ -389,7 +389,7 @@ Polymer({
*/
isProxyEditable_: function() {
let property = this.getProxySettingsTypeProperty_();
- return !!property && this.isEditable_(property);
+ return !property || this.isEditable_(property);
Dan Beam 2016/11/29 05:25:34 can you test this logic?
stevenjb 2016/11/30 22:58:19 We *should* test all of 'internet'. We currently t
Dan Beam 2016/12/02 00:23:50 now's a great time to start.
Dan Beam 2016/12/02 00:59:49 let me expound on this: the more code you write, t
stevenjb 2016/12/02 17:36:58 I am not unaware of any of this. The question has
},
/**

Powered by Google App Engine
This is Rietveld 408576698