| Index: ash/shell/window_watcher.cc
|
| diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
|
| index 64f1bc93bbae7b240d830c71a1e87aab4734e1f2..da8bddc4a46d2379b369dcb1e53aa8071d0c05d6 100644
|
| --- a/ash/shell/window_watcher.cc
|
| +++ b/ash/shell/window_watcher.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include <utility>
|
|
|
| -#include "ash/common/shelf/shelf_item_delegate_manager.h"
|
| #include "ash/common/shelf/shelf_model.h"
|
| #include "ash/common/shell_window_ids.h"
|
| #include "ash/common/wm_shell.h"
|
| @@ -114,11 +113,9 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
|
|
|
| model->Add(item);
|
|
|
| - ShelfItemDelegateManager* manager =
|
| - Shell::GetInstance()->shelf_item_delegate_manager();
|
| std::unique_ptr<ShelfItemDelegate> delegate(
|
| new WindowWatcherShelfItemDelegate(id, this));
|
| - manager->SetShelfItemDelegate(id, std::move(delegate));
|
| + model->SetShelfItemDelegate(id, std::move(delegate));
|
| SetShelfIDForWindow(id, new_window);
|
| }
|
|
|
|
|