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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.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/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index b6ee520f93f1ada04daba5ea04889a7f63ac5579..1511fca60dbff03fee147314676580d3f0359197 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -36,6 +36,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
+#include "chrome/common/switch_utils.h"
#include "chrome/common/time_format.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/notification_service.h"
@@ -584,6 +585,11 @@ double ChromeShellDelegate::GetSavedScreenMagnifierScale() {
ui::MenuModel* ChromeShellDelegate::CreateContextMenu(aura::RootWindow* root) {
DCHECK(launcher_delegate_);
+ // Don't show context menu for exclusive app runtime mode.
+ if (switches::IsRunningInAppMode()) {
Mr4D (OOO till 08-26) 2013/01/30 04:05:27 No brackets needed
zel 2013/01/30 17:06:43 Done.
+ return NULL;
+ }
+
return new LauncherContextMenu(launcher_delegate_, root);
}

Powered by Google App Engine
This is Rietveld 408576698