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

Unified Diff: chrome/browser/ui/browser.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: rebase 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 23fdd51d8e5f0e0335e1a4187129a421c367cad0..386f0e3ebee194b62f49300179244899d0e32c9e 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -150,6 +150,7 @@
#include "chrome/common/profiling.h"
#include "chrome/common/search_types.h"
#include "chrome/common/startup_metric_utils.h"
+#include "chrome/common/switch_utils.h"
#include "chrome/common/url_constants.h"
#include "chrome/common/web_apps.h"
#include "content/public/browser/color_chooser.h"
@@ -2071,9 +2072,10 @@ void Browser::RemoveScheduledUpdatesFor(WebContents* contents) {
// Browser, Getters for UI (private):
StatusBubble* Browser::GetStatusBubble() {
- // In kiosk mode, we want to always hide the status bubble.
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode))
+ // In kiosk and exclusive app mode, we want to always hide the status bubble.
+ if (switches::IsRunningInAppMode())
return NULL;
+
return window_ ? window_->GetStatusBubble() : NULL;
}

Powered by Google App Engine
This is Rietveld 408576698