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

Unified Diff: chrome/browser/ui/ash/launcher/arc_launcher_context_menu.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/launcher/arc_launcher_context_menu.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.cc
index 55c56c67d87c565227b655b783d427c3b04a454e..76ea2b6051ba1737f078c2fd0550269bd37c1c72 100644
--- a/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.cc
+++ b/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.cc
@@ -27,8 +27,8 @@ void ArcLauncherContextMenu::Init() {
ArcAppListPrefs::Get(controller()->profile());
DCHECK(arc_list_prefs);
- const arc::ArcAppShelfId& app_id = arc::ArcAppShelfId::FromString(
- controller()->GetAppIDForShelfID(item().id));
+ const arc::ArcAppShelfId& app_id =
+ arc::ArcAppShelfId::FromString(item().id.app_id);
std::unique_ptr<ArcAppListPrefs::AppInfo> app_info =
arc_list_prefs->GetApp(app_id.app_id());
if (!app_info && !app_id.has_shelf_group_id()) {

Powered by Google App Engine
This is Rietveld 408576698