Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index 895c2f2ee78d55ccf97af7afa1da06ef74c2df55..f4c05f1b0a990642e2a69d3df0d50fc8756efa22 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -82,6 +82,7 @@ |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/extensions/extension_resource.h" |
#include "chrome/common/pref_names.h" |
+#include "chrome/common/switch_utils.h" |
#include "chrome/common/url_constants.h" |
#include "content/public/browser/download_manager.h" |
#include "content/public/browser/native_web_keyboard_event.h" |
@@ -2279,9 +2280,7 @@ void BrowserView::ProcessFullscreen(bool fullscreen, |
browser_->WindowFullscreenStateChanged(); |
if (fullscreen) { |
- bool is_kiosk = |
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode); |
- if (!is_kiosk && type != FOR_METRO) { |
+ if (!switches::IsRunningInAppMode() && type != FOR_METRO) { |
fullscreen_bubble_.reset(new FullscreenExitBubbleViews( |
GetWidget(), browser_.get(), url, bubble_type)); |
} |