Index: chrome/browser/ui/fullscreen_controller.cc |
diff --git a/chrome/browser/ui/fullscreen_controller.cc b/chrome/browser/ui/fullscreen_controller.cc |
index 9136131d8f1a74073ed1d51ffeaa21c01c4b7608..10a98f8c8963157d349e5988a6b6cceca453cce6 100644 |
--- a/chrome/browser/ui/fullscreen_controller.cc |
+++ b/chrome/browser/ui/fullscreen_controller.cc |
@@ -555,13 +555,11 @@ void FullscreenController::ToggleFullscreenModeInternal(bool for_tab) { |
toggled_into_fullscreen_ = !window_->IsFullscreen(); |
- // In kiosk mode, we always want to be fullscreen. When the browser first |
- // starts we're not yet fullscreen, so let the initial toggle go through. |
-#if !defined(OS_MACOSX) // Kiosk mode not available on Mac. |
+ // In kiosk mode, we always want to be fullscreen. When the browser first |
+ // starts we're not yet fullscreen, so let the initial toggle go through. |
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode) && |
- window_->IsFullscreen()) |
+ !toggled_into_fullscreen_) |
return; |
-#endif |
GURL url; |
if (for_tab) { |