summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/ash/chrome_shell_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/ash/chrome_shell_delegate.cc')
-rw-r--r--chrome/browser/ui/ash/chrome_shell_delegate.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index a3d8878..497c973c 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -127,12 +127,18 @@ aura::client::UserActionClient* ChromeShellDelegate::CreateUserActionClient() {
return new UserActionHandler;
}
-ui::MenuModel* ChromeShellDelegate::CreateContextMenu(aura::Window* root) {
+ui::MenuModel* ChromeShellDelegate::CreateContextMenu(
+ aura::Window* root,
+ ash::ShelfItemDelegate* item_delegate,
+ ash::LauncherItem* item) {
DCHECK(shelf_delegate_);
// Don't show context menu for exclusive app runtime mode.
if (chrome::IsRunningInAppMode())
return NULL;
+ if (item_delegate && item)
+ return new LauncherContextMenu(shelf_delegate_, item_delegate, item, root);
+
return new LauncherContextMenu(shelf_delegate_, root);
}