Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc |
index fa6835c41665c6620b6045c7204dcf42aa50be97..17509cfdd66229d140e7670c4cb6001477759a39 100644 |
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc |
@@ -8,6 +8,7 @@ |
#include "ash/display/screen_orientation_controller_chromeos.h" |
#include "ash/shared/app_types.h" |
#include "ash/shelf/shelf_delegate.h" |
+#include "ash/shelf/shelf_model.h" |
#include "ash/shell.h" |
#include "ash/wm/maximize_mode/maximize_mode_controller.h" |
#include "ash/wm/window_properties.h" |
@@ -659,7 +660,8 @@ ArcAppWindowLauncherController::AttachControllerToTask( |
if (!shelf_id) { |
owner()->CreateAppLauncherItem(std::move(controller), ash::STATUS_RUNNING); |
} 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)); |
owner()->SetItemStatus(shelf_id, ash::STATUS_RUNNING); |
} |
item_controller->AddTaskId(task_id); |