Index: chrome/browser/ui/cocoa/presentation_mode_controller.mm |
diff --git a/chrome/browser/ui/cocoa/presentation_mode_controller.mm b/chrome/browser/ui/cocoa/presentation_mode_controller.mm |
index 35a20a568d131c30668e5b53a4577baae1ef0dd4..af42b3efccb99c4f722acef5a0e2634a0ecc13bc 100644 |
--- a/chrome/browser/ui/cocoa/presentation_mode_controller.mm |
+++ b/chrome/browser/ui/cocoa/presentation_mode_controller.mm |
@@ -6,8 +6,10 @@ |
#include <algorithm> |
+#include "base/command_line.h" |
#import "base/mac/mac_util.h" |
#import "chrome/browser/ui/cocoa/browser_window_controller.h" |
+#include "chrome/common/chrome_switches.h" |
#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" |
NSString* const kWillEnterFullscreenNotification = |
@@ -285,6 +287,9 @@ const CGFloat kFloatingBarVerticalOffset = 22; |
if (!inPresentationMode_) |
return; |
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode)) |
+ return; |
+ |
if (animate) { |
if (delay) { |
[self startShowTimer]; |