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

Unified Diff: chrome/browser/ui/ash/launcher/extension_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/extension_launcher_context_menu.cc
diff --git a/chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc
index 94415afc6194159266755ec0117ec7f4db913e98..cf68de22e4f96d02deaeecb35d6d9a8f429f5960 100644
--- a/chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc
+++ b/chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc
@@ -94,8 +94,7 @@ void ExtensionLauncherContextMenu::Init() {
}
AddSeparator(ui::NORMAL_SEPARATOR);
if (item().type == ash::TYPE_PINNED_APP || item().type == ash::TYPE_APP) {
- const extensions::MenuItem::ExtensionKey app_key(
- controller()->GetAppIDForShelfID(item().id));
+ const extensions::MenuItem::ExtensionKey app_key(item().id.app_id);
if (!app_key.empty()) {
int index = 0;
extension_items_->AppendExtensionItems(app_key, base::string16(), &index,

Powered by Google App Engine
This is Rietveld 408576698