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

Unified Diff: chrome/browser/policy/configuration_policy_handler_list.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/policy/configuration_policy_handler_list.cc
diff --git a/chrome/browser/policy/configuration_policy_handler_list.cc b/chrome/browser/policy/configuration_policy_handler_list.cc
index 39eec6d42c5b0703b5063e5dfe5e9e116e5fe4bb..fbfa51316b1a265653a90ea6c496938c6e9de3a4 100644
--- a/chrome/browser/policy/configuration_policy_handler_list.cc
+++ b/chrome/browser/policy/configuration_policy_handler_list.cc
@@ -27,6 +27,10 @@
#include "chrome/browser/policy/configuration_policy_handler_android.h"
#endif // defined(OS_ANDROID)
+#if !defined(OS_MACOSX)
+#include "apps/pref_names.h"
+#endif
+
namespace policy {
namespace {
@@ -346,6 +350,15 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = {
prefs::kManagedUserCreationAllowed,
Value::TYPE_BOOLEAN },
+#if !defined(OS_MACOSX)
+ { key::kFullscreenAllowed,
+ prefs::kFullscreenAllowed,
+ Value::TYPE_BOOLEAN },
+ { key::kFullscreenAllowed,
+ apps::prefs::kAppFullscreenAllowed,
+ Value::TYPE_BOOLEAN },
+#endif // !defined(OS_MACOSX)
+
#if defined(OS_CHROMEOS)
{ key::kChromeOsLockOnIdleSuspend,
prefs::kEnableScreenLock,
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account_policy_store.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698