Index: chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc |
index 7b1ed438e7bc3c75cb23fea0270c7626e4acd444..5e4528c391f8e2a6d3e2d53df1aa49013830857d 100644 |
--- a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h" |
#include "ash/common/shelf/shelf_delegate.h" |
+#include "ash/common/shelf/shelf_model.h" |
#include "ash/common/wm_window.h" |
#include "ash/shell.h" |
#include "ash/wm/window_properties.h" |
@@ -194,7 +195,8 @@ void ExtensionAppWindowLauncherController::RegisterApp(AppWindow* app_window) { |
item_controller->set_image_set_by_controller(true); |
} |
} else { |
- owner()->SetShelfItemDelegate(shelf_id, std::move(controller)); |
+ ash::ShelfModel* shelf_model = ash::Shell::Get()->shelf_model(); |
+ shelf_model->SetShelfItemDelegate(shelf_id, std::move(controller)); |
} |
// We need to change the controller associated with app_shelf_id. |