Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6540)

Unified Diff: chrome/browser/ui/fullscreen/fullscreen_controller.cc

Issue 12077055: Made launcher hidden when kicking off chrome in app mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 5f9ab4e8748d8a81aa95639eb3a024aebbba0f8e..514e88beff23b4a70ec4c1df8f408d51e5aea7ad 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/browser_window.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"
@@ -386,11 +387,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;
+ // 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) // Kiosk mode not available on Mac.
Mr4D (OOO till 08-26) 2013/01/30 04:05:27 This comment is now a bit confusing.
zel 2013/01/30 17:06:43 Done.
- kiosk = CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode);
+ app_mode = switches::IsRunningInAppMode();
#endif
if (mouse_lock_state_ == MOUSELOCK_ACCEPTED_SILENTLY) {
@@ -421,7 +422,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;
@@ -504,8 +505,7 @@ void FullscreenController::ToggleFullscreenModeInternal(bool for_tab) {
// 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) &&
- !toggled_into_fullscreen_)
+ if (switches::IsRunningInAppMode() && !toggled_into_fullscreen_)
return;
GURL url;

Powered by Google App Engine
This is Rietveld 408576698