Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc |
index 7524f30c2d34bf140b4ea7a8c5599d8338cf2e98..8396f824efae272bc9ce648068547bc82e67a29c 100644 |
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc |
@@ -24,6 +24,16 @@ ArcAppWindowLauncherItemController::ArcAppWindowLauncherItemController( |
ArcAppWindowLauncherItemController::~ArcAppWindowLauncherItemController() {} |
+ash::ShelfItemDelegate::PerformedAction |
+ArcAppWindowLauncherItemController::ItemSelected(const ui::Event& eent) { |
Mr4D (OOO till 08-26)
2016/08/26 22:54:43
eent -> event?
khmel
2016/08/29 16:41:04
Done.
|
+ if (window_count()) { |
+ return AppWindowLauncherItemController::ItemSelected(eent); |
+ } else { |
+ Launch(ash::LAUNCH_FROM_UNKNOWN, 0); |
+ return kNewWindowCreated; |
+ } |
+} |
+ |
base::string16 ArcAppWindowLauncherItemController::GetTitle() { |
ArcAppListPrefs* arc_prefs = |
ArcAppListPrefs::Get(launcher_controller()->GetProfile()); |