Save the launch parameters for restored system web apps.
The full restore calls BrowserAppLauncher::LaunchAppWithParams to restore the system web apps: https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/chromeos/full_restore/app_launch_handler.cc;l=210 So modify BrowserAppLauncher::LaunchAppWithParams to save the launch parameters to prepare the full restore for the next reboot. Modify ExtensionAppsChromeOs to save the launch parameters for platform apps only. Modify WebAppsChromeOs to save the launch parameters for the system web apps only. Because if the apps opened in tab or with browser, the full restore component can get the info from the window property kWindowIdKey, and Chrome session restore can restore browsers, so we don't need to save the launch parameter. BUG=1146900 Change-Id: I1231bcbc1d665918f5f6d7efbf19751387bf8ebb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2639346Reviewed-by:Dominick Ng <dominickn@chromium.org> Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#845536}
Showing
Please register or sign in to comment