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

Unified Diff: chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc

Issue 2523053004: Enhance chrome.app.window API for shelf integration with restore support (Closed)
Patch Set: Review v4 Created 4 years 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/app_shortcut_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
index 059ebcbb3512583fa764a9e146732539fa2961f9..f78b81291bf22c07c10c2c1fcef8a9a4358f73d2 100644
--- a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
@@ -109,7 +109,8 @@ bool AppShortcutLauncherItemController::IsVisible() const {
void AppShortcutLauncherItemController::Launch(ash::LaunchSource source,
int event_flags) {
- launcher_controller()->LaunchApp(app_id(), source, event_flags);
+ launcher_controller()->LaunchAppWithLaunchId(app_id(), launch_id(), source,
+ event_flags);
stevenjb 2016/12/09 17:00:57 Why use WithLaunchId with an empty launch_id() ?
Andra Paraschiv 2016/12/12 14:28:22 Launch id should be non-empty if the window was cr
stevenjb 2016/12/13 19:31:14 Let me be more clear: Why not use launcher_contro
Andra Paraschiv 2016/12/14 14:59:38 In this case, if we use LaunchApp instead of Launc
stevenjb 2016/12/14 18:40:21 Ugh. My apologies. I was somehow reading that as L
Andra Paraschiv 2016/12/15 10:20:15 There's no problem, Steven, it's good we have this
}
ash::ShelfItemDelegate::PerformedAction

Powered by Google App Engine
This is Rietveld 408576698