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

Unified Diff: ash/launcher/launcher.cc

Issue 25823002: Refactor LauncherItemController and LauncherItemDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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: ash/launcher/launcher.cc
diff --git a/ash/launcher/launcher.cc b/ash/launcher/launcher.cc
index b1e819d7f81f9cbdfe08c86b7c0149d9984d1acc..ae164856077c013e246dcf96bbfb0fa0980ad77b 100644
--- a/ash/launcher/launcher.cc
+++ b/ash/launcher/launcher.cc
@@ -108,8 +108,10 @@ void Launcher::ActivateLauncherItem(int index) {
false);
const ash::LauncherItem& item = launcher_view_->model()->items()[index];
- Shell::GetInstance()->launcher_item_delegate_manager()->
- GetLauncherItemDelegate(item.type)->ItemSelected(item, event);
+ ash::LauncherItemDelegate* item_delegate =
+ Shell::GetInstance()->launcher_item_delegate_manager()->
+ GetLauncherItemDelegate(item.id);
+ item_delegate->ItemSelected(event);
}
void Launcher::CycleWindowLinear(CycleDirection direction) {
« no previous file with comments | « ash/ash.gyp ('k') | ash/launcher/launcher_delegate.h » ('j') | ash/launcher/launcher_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698