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

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..f0ad9ee43fc5554fea44010bb8137b3afee1edf4 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -584,6 +584,12 @@ double ChromeShellDelegate::GetSavedScreenMagnifierScale() {
ui::MenuModel* ChromeShellDelegate::CreateContextMenu(aura::RootWindow* root) {
DCHECK(launcher_delegate_);
+ // Don't show context menu for exclusive app runtime mode.
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceAppMode) &&
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppId)) {
+ return NULL;
+ }
+
return new LauncherContextMenu(launcher_delegate_, root);
}

Powered by Google App Engine
This is Rietveld 408576698