| Index: chrome/browser/resources/settings/system_page/system_page.js
|
| diff --git a/chrome/browser/resources/settings/system_page/system_page.js b/chrome/browser/resources/settings/system_page/system_page.js
|
| index b03f680f092546bcc1153a1eb46a0d0477411d01..812c6decac0318040bb09cd04dd860e90360d8dc 100644
|
| --- a/chrome/browser/resources/settings/system_page/system_page.js
|
| +++ b/chrome/browser/resources/settings/system_page/system_page.js
|
| @@ -21,6 +21,34 @@ Polymer({
|
| type: Boolean,
|
| computed: 'computeIsProxyEnforcedByPolicy_(prefs.proxy.*)',
|
| },
|
| +
|
| + hideProtection_: {
|
| + type: Boolean,
|
| + value: true,
|
| + },
|
| +
|
| + /** @private {chrome.settingsPrivate.PrefObject} */
|
| + protectionPref_: {
|
| + type: Object,
|
| + }
|
| + },
|
| +
|
| + /** @override */
|
| + ready: function() {
|
| + this.proxy_ = settings.SystemPageBrowserProxyImpl.getInstance();
|
| +
|
| + this.hideProtection_ = this.proxy_.hideProtectionSetting();
|
| +
|
| + this.protectionPref_ = {
|
| + key: '',
|
| + type: chrome.settingsPrivate.PrefType.BOOLEAN,
|
| + value: this.proxy_.protectionSetting(),
|
| + };
|
| + },
|
| +
|
| + onProtectionChange_: function() {
|
| + var enabled = this.$.protectionControl.checked;
|
| + this.proxy_.setProtectionSetting(enabled);
|
| },
|
|
|
| /**
|
|
|