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

Unified Diff: chrome/browser/resources/settings/system_page/system_page_browser_proxy.js

Issue 2971163002: Add local protection setting to chrome://settings/system
Patch Set: linux-only Created 3 years, 5 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/resources/settings/system_page/system_page.js ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/resources/settings/system_page/system_page.js ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698