summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.cc
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 00:12:09 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 00:12:09 +0000
commit3493043c61392d48177275f90e29bdeede966308 (patch)
treee3ba4eca8ba36ad9f257d161daf534dd9b26e672 /chrome/browser/browser_init.cc
parent3367fc1dd134eeaf9ab6e62397f05ad3964319fe (diff)
downloadchromium_src-3493043c61392d48177275f90e29bdeede966308.zip
chromium_src-3493043c61392d48177275f90e29bdeede966308.tar.gz
chromium_src-3493043c61392d48177275f90e29bdeede966308.tar.bz2
Kiosk Mode implementation.
Kiosk mode will just hide the status bar and initially set it as full screen. Added some tests to add --kiosk mode as a command switch that tests if its in fullscreen state and doesn't have a status bubble. BUG=23145 TEST=Kiosk Mode functions and Run the ./ui_tests --gtest_filter=KioskModeTest.* Review URL: http://codereview.chromium.org/244003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r--chrome/browser/browser_init.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index a0ee959..5a08089 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -559,6 +559,12 @@ Browser* BrowserInit::LaunchWithProfile::OpenURLsInBrowser(
if (!browser || browser->type() != Browser::TYPE_NORMAL)
browser = Browser::Create(profile_);
+#if !defined(OS_MACOSX)
+ // In kiosk mode, we want to always be fullscreen, so switch to that now.
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode))
+ browser->ToggleFullscreenMode();
+#endif
+
for (size_t i = 0; i < urls.size(); ++i) {
// We skip URLs that we'd have to launch an external protocol handler for.
// This avoids us getting into an infinite loop asking ourselves to open