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..fe90dd9ce42815214027a9901853f9bf7149ef15 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,10 @@ 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()) |
+ return NULL; |
+ |
return new LauncherContextMenu(launcher_delegate_, root); |
} |