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

Unified Diff: ash/shelf/shelf.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: ash/shelf/shelf.cc
diff --git a/ash/shelf/shelf.cc b/ash/shelf/shelf.cc
index 282105919cd5ba66d158f0743d327aa7648a008e..2030432fc898a63173f80d4ab1bf874988448582 100644
--- a/ash/shelf/shelf.cc
+++ b/ash/shelf/shelf.cc
@@ -9,7 +9,6 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/shelf/shelf_item_delegate.h"
-#include "ash/common/shelf/shelf_item_delegate_manager.h"
#include "ash/common/shelf/shelf_model.h"
#include "ash/common/shelf/shelf_navigator.h"
#include "ash/common/shelf/wm_shelf_util.h"
@@ -139,8 +138,7 @@ void Shelf::ActivateShelfItem(int index) {
const ShelfItem& item = shelf_view_->model()->items()[index];
ShelfItemDelegate* item_delegate =
- Shell::GetInstance()->shelf_item_delegate_manager()->GetShelfItemDelegate(
- item.id);
+ shelf_view_->model()->GetShelfItemDelegate(item.id);
item_delegate->ItemSelected(event);
}

Powered by Google App Engine
This is Rietveld 408576698