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

Unified Diff: chrome/browser/ui/extensions/application_launch.cc

Issue 2523053004: Enhance chrome.app.window API for shelf integration with restore support (Closed)
Patch Set: Review v2 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
« apps/launcher.cc ('K') | « chrome/browser/ui/extensions/app_launch_params.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/extensions/application_launch.cc
diff --git a/chrome/browser/ui/extensions/application_launch.cc b/chrome/browser/ui/extensions/application_launch.cc
index f734580c1db489a1440e8addffc1c8095ebdbab5..deea7614c999780de8bff966027f02d34ec6b8d7 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -305,9 +305,15 @@ WebContents* OpenEnabledApplication(const AppLaunchParams& params) {
prefs->SetActiveBit(extension->id(), true);
if (CanLaunchViaEvent(extension)) {
- apps::LaunchPlatformAppWithCommandLine(
- params.profile, extension, params.command_line,
- params.current_directory, params.source, params.play_store_status);
+ if (params.launch_id.empty()) {
+ apps::LaunchPlatformAppWithCommandLine(
+ params.profile, extension, params.command_line,
+ params.current_directory, params.source, params.play_store_status);
+ } else {
+ apps::LaunchPlatformAppWithCommandLineAndLaunchId(
+ params.profile, extension, params.launch_id, params.command_line,
+ params.current_directory, params.source, params.play_store_status);
+ }
return NULL;
}
« apps/launcher.cc ('K') | « chrome/browser/ui/extensions/app_launch_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698