Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc

Issue 2800263002: Revert of mash: Remove ChromeLauncherController's |id_to_item_controller_map_|. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 ccee5f499d530f6d37de6267e72ccfb848f7203c..d6e8f2e2499f857ff29190b78260f7cee1f8a596 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
@@ -6,7 +6,6 @@
#include <string>
#include "ash/common/shelf/shelf_delegate.h"
-#include "ash/common/shelf/shelf_model.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_window.h"
@@ -660,8 +659,7 @@
if (!shelf_id) {
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);
}
item_controller->AddTaskId(task_id);

Powered by Google App Engine
This is Rietveld 408576698