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); |
} |