Desktop PWA: Adding prototype for Run PWA on user OS login
This is part 1 of 3 of the prototype to configure PWAS to run on
OS login.
Updates for the prototype include:
- Added feature flag "Desktop PWAs run on OS login", disabled by default.
- Added Startup folder to Windows base paths and shell util.
- Added "in_startup" entry to Web App Shortcut locations.
- If feature flag is enabled, show a checkbox in the PWA install dialog.
- If checked, PWA install task creates an additional shortcut in
Windows Startup folder by setting "in_startup" location to true.
Additional parts for the feature to come in next CLs.
Explainer: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/master/RunOnLogin/Explainer.md
I2P: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/T6d2zqF_jpw/76TP7Bc2DwAJ
Bug: 897302
Change-Id: I0870e5a26e94e8e60001b78c95e53da134388f0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2026256
Commit-Queue: Carlos Frias <[email protected]>
Reviewed-by: Alexey Baskakov <[email protected]>
Reviewed-by: Greg Thompson <[email protected]>
Reviewed-by: Alan Cutter <[email protected]>
Cr-Commit-Position: refs/heads/master@{#772460}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index d0e0107..02196125 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2734,6 +2734,10 @@
flag_descriptions::kDesktopPWAsWithoutExtensionsName,
flag_descriptions::kDesktopPWAsWithoutExtensionsDescription, kOsDesktop,
FEATURE_VALUE_TYPE(features::kDesktopPWAsWithoutExtensions)},
+ {"enable-desktop-pwas-run-on-os-login",
+ flag_descriptions::kDesktopPWAsRunOnOsLoginName,
+ flag_descriptions::kDesktopPWAsRunOnOsLoginDescription, kOsDesktop,
+ FEATURE_VALUE_TYPE(features::kDesktopPWAsRunOnOsLogin)},
{"enable-system-webapps", flag_descriptions::kEnableSystemWebAppsName,
flag_descriptions::kEnableSystemWebAppsDescription, kOsDesktop,
FEATURE_VALUE_TYPE(features::kSystemWebApps)},