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

Unified Diff: apps/launcher.cc

Issue 2523053004: Enhance chrome.app.window API for shelf integration with restore support (Closed)
Patch Set: Created 4 years, 1 month 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: apps/launcher.cc
diff --git a/apps/launcher.cc b/apps/launcher.cc
index 1ac5aef27947de679163f78d81d4f6998fe81ea3..26871ebf72c3a3d13628c5fbea2fe98c9f58cf04 100644
--- a/apps/launcher.cc
+++ b/apps/launcher.cc
@@ -359,6 +359,7 @@ class PlatformAppPathLauncher
void LaunchPlatformAppWithCommandLine(Profile* profile,
const extensions::Extension* app,
+ const std::string& launch_id,
const base::CommandLine& command_line,
const base::FilePath& current_directory,
extensions::AppLaunchSource source,
@@ -397,6 +398,7 @@ void LaunchPlatformAppWithCommandLine(Profile* profile,
base::MakeUnique<app_runtime::LaunchData>();
if (play_store_status != PlayStoreStatus::PLAY_STORE_STATUS_UNKNOWN)
launch_data->play_store_status = play_store_status;
+ launch_data->id.reset(new std::string(launch_id));
AppRuntimeEventRouter::DispatchOnLaunchedEvent(profile, app, source,
std::move(launch_data));
return;
@@ -432,7 +434,7 @@ void LaunchPlatformApp(Profile* profile,
const Extension* app,
extensions::AppLaunchSource source) {
LaunchPlatformAppWithCommandLine(
- profile, app, base::CommandLine(base::CommandLine::NO_PROGRAM),
+ profile, app, "", base::CommandLine(base::CommandLine::NO_PROGRAM),
base::FilePath(), source);
}

Powered by Google App Engine
This is Rietveld 408576698