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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_store.cc

Issue 22986010: Add policy for fullscreen mode; disallow fullscreen in public sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser test compilation after rebase. Created 7 years, 4 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
Index: chrome/browser/chromeos/policy/device_local_account_policy_store.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
index 786a2c920f861ce4b88b89ec61561824729609e0..392cdf8eb9ce6061f7712f75dcbfd131604dbae3 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
@@ -101,6 +101,13 @@ void DeviceLocalAccountPolicyStore::UpdatePolicy(
POLICY_SCOPE_USER,
Value::CreateBooleanValue(true),
NULL);
+ // Force the |FullscreenAllowed| policy to |false|, ensuring that the ash
+ // shelf cannot be hidden by entering fullscreen mode.
+ policy_map_.Set(key::kFullscreenAllowed,
+ POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_USER,
+ Value::CreateBooleanValue(false),
+ NULL);
// Restrict device-local accounts to hosted apps for now (i.e. no extensions,
// packaged apps etc.) for security/privacy reasons (i.e. we'd like to
// prevent the admin from stealing private information from random people).

Powered by Google App Engine
This is Rietveld 408576698