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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_context_menu.cc

Issue 2171813004: mash: Fold ShelfItemDelegateManager into ShelfModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 5 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/launcher/launcher_context_menu.cc
diff --git a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
index 388f3aa0b958d645c9b986c8d1c2da0873eb21ad..f7c0604ffab5c2802da184ecddc1da88ad2e833c 100644
--- a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
@@ -7,6 +7,7 @@
#include <string>
#include "ash/common/session/session_state_delegate.h"
+#include "ash/common/shelf/shelf_model.h"
#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/wm_shell.h"
#include "ash/desktop_background/user_wallpaper_delegate.h"
@@ -122,9 +123,7 @@ void LauncherContextMenu::ExecuteCommand(int command_id, int event_flags) {
case MENU_CLOSE:
if (item_.type == ash::TYPE_DIALOG) {
ash::ShelfItemDelegate* item_delegate =
- ash::Shell::GetInstance()
- ->shelf_item_delegate_manager()
- ->GetShelfItemDelegate(item_.id);
+ ash::WmShell::Get()->shelf_model()->GetShelfItemDelegate(item_.id);
DCHECK(item_delegate);
item_delegate->Close();
} else {

Powered by Google App Engine
This is Rietveld 408576698