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

Unified Diff: trunk/src/ash/launcher/launcher.cc

Issue 25716004: Revert 226547 "Refactor LauncherItemController and LauncherItemD..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
« no previous file with comments | « trunk/src/ash/ash.gyp ('k') | trunk/src/ash/launcher/launcher_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/launcher/launcher.cc
===================================================================
--- trunk/src/ash/launcher/launcher.cc (revision 226578)
+++ trunk/src/ash/launcher/launcher.cc (working copy)
@@ -108,11 +108,8 @@
false);
const ash::LauncherItem& item = launcher_view_->model()->items()[index];
- ash::LauncherItemDelegate* item_delegate =
- Shell::GetInstance()->launcher_item_delegate_manager()->
- GetLauncherItemDelegate(item.id);
- if (item_delegate)
- item_delegate->ItemSelected(event);
+ Shell::GetInstance()->launcher_item_delegate_manager()->
+ GetLauncherItemDelegate(item.type)->ItemSelected(item, event);
}
void Launcher::CycleWindowLinear(CycleDirection direction) {
« no previous file with comments | « trunk/src/ash/ash.gyp ('k') | trunk/src/ash/launcher/launcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698