| Index: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
|
| index a956eae6a6d36855ab87c6f4b1a5b1a8df342c20..9b78269a8f8cfe516c4f96fb73206f23cbcc5955 100644
|
| --- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
|
| +++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
|
| @@ -4,8 +4,6 @@
|
|
|
| #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h"
|
|
|
| -#include "ash/common/shelf/shelf_model.h"
|
| -#include "ash/shell.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "chrome/browser/chromeos/arc/arc_util.h"
|
| @@ -113,9 +111,8 @@
|
| return;
|
|
|
| const ash::ShelfID shelf_id = owner_->GetShelfIDForAppID(shelf_app_id);
|
| - ash::ShelfModel* shelf_model = ash::Shell::Get()->shelf_model();
|
| const bool need_close_item =
|
| - it->second == shelf_model->GetShelfItemDelegate(shelf_id);
|
| + it->second == owner_->GetShelfItemDelegate(shelf_id);
|
| app_controller_map_.erase(it);
|
| if (need_close_item)
|
| owner_->CloseLauncherItem(shelf_id);
|
| @@ -213,8 +210,7 @@
|
| if (shelf_id == 0) {
|
| owner_->CreateAppLauncherItem(std::move(controller), ash::STATUS_RUNNING);
|
| } else {
|
| - ash::ShelfModel* shelf_model = ash::Shell::Get()->shelf_model();
|
| - shelf_model->SetShelfItemDelegate(shelf_id, std::move(controller));
|
| + owner_->SetShelfItemDelegate(shelf_id, std::move(controller));
|
| owner_->SetItemStatus(shelf_id, ash::STATUS_RUNNING);
|
| }
|
|
|
|
|