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( |