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

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: Add an explanation of fullscreen mode. 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 03c0711bf3d7c7f1a2baa359339c79490a129def..e9a39a53d68c6554c5ff5101a7c26b224a9e728a 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,

Powered by Google App Engine
This is Rietveld 408576698