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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_controller_ash.cc

Issue 2870683002: ash: Remove ShelfModel id conversion functions. (Closed)
Patch Set: Address comments. Created 3 years, 7 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/app_list/app_list_controller_ash.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
index d02eeaadddb88eaa79e9ab3dfcfabcd3663fed5b..c944f12f1860fc7b0d712516420ae6a68549daf3 100644
--- a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
@@ -42,9 +42,7 @@ bool AppListControllerDelegateAsh::IsAppPinned(const std::string& app_id) {
}
bool AppListControllerDelegateAsh::IsAppOpen(const std::string& app_id) const {
- ash::ShelfID id =
- ash::Shell::Get()->shelf_model()->GetShelfIDForAppID(app_id);
- return !id.IsNull() && ChromeLauncherController::instance()->IsOpen(id);
+ return ChromeLauncherController::instance()->IsOpen(ash::ShelfID(app_id));
}
void AppListControllerDelegateAsh::PinApp(const std::string& app_id) {
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698