| Index: chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller.cc b/chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| index 6a6cf443650feea6e8b3a8beeddf54ce12b2419b..769945d4fb21808cebd070bb7e31c9f3e56a4bda 100644
|
| --- a/chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| +++ b/chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| @@ -15,6 +15,7 @@
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/switch_utils.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "content/public/browser/navigation_details.h"
|
| #include "content/public/browser/navigation_entry.h"
|
| @@ -377,11 +378,11 @@ GURL FullscreenController::GetFullscreenExitBubbleURL() const {
|
|
|
| FullscreenExitBubbleType FullscreenController::GetFullscreenExitBubbleType()
|
| const {
|
| - // In kiosk mode we always want to be fullscreen and do not want to show
|
| - // exit instructions for browser mode fullscreen.
|
| - bool kiosk = false;
|
| -#if !defined(OS_MACOSX) // Kiosk mode not available on Mac.
|
| - kiosk = CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode);
|
| + // In kiosk and exclusive app mode we always want to be fullscreen and do not
|
| + // want to show exit instructions for browser mode fullscreen.
|
| + bool app_mode = false;
|
| +#if !defined(OS_MACOSX) // App mode (kiosk) is not available on Mac yet.
|
| + app_mode = switches::IsRunningInAppMode();
|
| #endif
|
|
|
| if (mouse_lock_state_ == MOUSELOCK_ACCEPTED_SILENTLY) {
|
| @@ -412,7 +413,7 @@ FullscreenExitBubbleType FullscreenController::GetFullscreenExitBubbleType()
|
| } else {
|
| if (!extension_caused_fullscreen_.is_empty()) {
|
| return FEB_TYPE_BROWSER_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION;
|
| - } else if (toggled_into_fullscreen_ && !kiosk) {
|
| + } else if (toggled_into_fullscreen_ && !app_mode) {
|
| return FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION;
|
| } else {
|
| return FEB_TYPE_NONE;
|
| @@ -506,8 +507,7 @@ void FullscreenController::ToggleFullscreenModeInternal(
|
|
|
| // 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())
|
| + if (switches::IsRunningInAppMode() && window_->IsFullscreen())
|
| return;
|
|
|
| if (enter_fullscreen)
|
|
|