diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/browser_init.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index c645420..967b454 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -552,13 +552,17 @@ bool BrowserInit::LaunchWithProfile::Launch(Profile* profile, RecordLaunchModeHistogram(LM_AS_WEBAPP); } +#if !defined(OS_MACOSX) + // In kiosk mode, we want to always be fullscreen, so switch to that now. + if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode)) + BrowserList::GetLastActive()->ToggleFullscreenMode(); +#endif + #if defined(OS_WIN) // Print the selected page if the command line switch exists. Note that the // current selected tab would be the page which will be printed. - if (command_line_.HasSwitch(switches::kPrint)) { - Browser* browser = BrowserList::GetLastActive(); - browser->Print(); - } + if (command_line_.HasSwitch(switches::kPrint)) + BrowserList::GetLastActive()->Print(); #endif // If we're recording or playing back, startup the EventRecorder now @@ -742,12 +746,6 @@ Browser* BrowserInit::LaunchWithProfile::OpenTabsInBrowser( #endif } -#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 - bool first_tab = true; for (size_t i = 0; i < tabs.size(); ++i) { // We skip URLs that we'd have to launch an external protocol handler for. |