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