summaryrefslogtreecommitdiffstats
path: root/apps/prefs.cc
diff options
context:
space:
mode:
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-25 15:48:25 +0000
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-25 15:48:25 +0000
commit32dfede31f73b2ad13b415d7c5ed21734b3ab8d1 (patch)
treea622d8ee73921661d3ac138bad86faedb56c1b4a /apps/prefs.cc
parente5232a59005b3d5a9051c6061d97bdb46f71bc37 (diff)
downloadchromium_src-32dfede31f73b2ad13b415d7c5ed21734b3ab8d1.zip
chromium_src-32dfede31f73b2ad13b415d7c5ed21734b3ab8d1.tar.gz
chromium_src-32dfede31f73b2ad13b415d7c5ed21734b3ab8d1.tar.bz2
Add policy for fullscreen mode; disallow fullscreen in public sessions
This CL adds a user policy that determines whether fullscreen mode is allowed and uses it to disallow fullscreen mode in public sessions. BUG=275405 TEST=New browser tests Review URL: https://chromiumcodereview.appspot.com/22986010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/prefs.cc')
-rw-r--r--apps/prefs.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/prefs.cc b/apps/prefs.cc
index 9347783..d53be17 100644
--- a/apps/prefs.cc
+++ b/apps/prefs.cc
@@ -38,6 +38,12 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
}
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
+#if !defined(OS_MACOSX)
+ registry->RegisterBooleanPref(
+ prefs::kAppFullscreenAllowed, true,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+#endif
+
// Indicates whether app shortcuts have been created.
registry->RegisterBooleanPref(
prefs::kShortcutsHaveBeenCreated, false,