| Index: chrome/browser/resources/settings/system_page/system_page_browser_proxy.js
|
| diff --git a/chrome/browser/resources/settings/system_page/system_page_browser_proxy.js b/chrome/browser/resources/settings/system_page/system_page_browser_proxy.js
|
| index 3b4d509bc4b4f2af710a854c712388d762bb87c2..5878b2e2d814805180d0ecf6f066657e605be4cf 100644
|
| --- a/chrome/browser/resources/settings/system_page/system_page_browser_proxy.js
|
| +++ b/chrome/browser/resources/settings/system_page/system_page_browser_proxy.js
|
| @@ -15,6 +15,19 @@ cr.define('settings', function() {
|
| * started Chrome.
|
| */
|
| wasHardwareAccelerationEnabledAtStartup() {}
|
| +
|
| + /**
|
| + * @return {boolean} Whether to show the setting that controls use of
|
| + * protection.
|
| + */
|
| + hideProtectionSetting() {}
|
| +
|
| + /**
|
| + * @return {boolean} // TODO(cfroussios)
|
| + */
|
| + protectionSetting() {}
|
| +
|
| + setProtectionSetting(enabled) {}
|
| }
|
|
|
| /**
|
| @@ -30,6 +43,20 @@ cr.define('settings', function() {
|
| wasHardwareAccelerationEnabledAtStartup() {
|
| return loadTimeData.getBoolean('hardwareAccelerationEnabledAtStartup');
|
| }
|
| +
|
| + /** @override */
|
| + hideProtectionSetting() {
|
| + return loadTimeData.getBoolean('hideProtectionSetting');
|
| + }
|
| +
|
| + /** @override */
|
| + protectionSetting() {
|
| + return loadTimeData.getBoolean('protectionSetting');
|
| + }
|
| +
|
| + setProtectionSetting(enabled) {
|
| + chrome.send('updateProtectionSetting', [enabled]);
|
| + }
|
| }
|
|
|
| cr.addSingletonGetter(SystemPageBrowserProxyImpl);
|
|
|