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

Unified Diff: ash/shelf/shelf_tooltip_manager_unittest.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_tooltip_manager_unittest.cc
diff --git a/ash/shelf/shelf_tooltip_manager_unittest.cc b/ash/shelf/shelf_tooltip_manager_unittest.cc
index b2841914a2b0f66fe67490a9e25c8630d8f1eeee..bdb90510ba503ab6dc6c0d9fa8656eedd18177a8 100644
--- a/ash/shelf/shelf_tooltip_manager_unittest.cc
+++ b/ash/shelf/shelf_tooltip_manager_unittest.cc
@@ -5,7 +5,6 @@
#include "ash/shelf/shelf_tooltip_manager.h"
#include "ash/common/shelf/app_list_button.h"
-#include "ash/common/shelf/shelf_item_delegate_manager.h"
#include "ash/common/shelf/shelf_model.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_view.h"
@@ -83,7 +82,7 @@ TEST_F(ShelfTooltipManagerTest, DoNotShowForInvalidView) {
item.type = TYPE_APP_SHORTCUT;
const int index = model->Add(item);
const ShelfID id = model->items()[index].id;
- Shell::GetInstance()->shelf_item_delegate_manager()->SetShelfItemDelegate(
+ model->SetShelfItemDelegate(
id, base::WrapUnique(new TestShelfItemDelegate(nullptr)));
// Note: There's no easy way to correlate shelf a model index/id to its view.
tooltip_manager_->ShowTooltipWithDelay(

Powered by Google App Engine
This is Rietveld 408576698