Update WebAPK after the user closes WebAPK
This CL hooks up updating WebAPKs to BackgroundTaskScheduler.
This has the following benefits:
- Preventing WebAPKs from being installed as a result of an update after a user
uninstalls a WebAPK
- Making WebAPKs always occur when the WebAPK is not running. Previously,
updates were triggered as a result of WebApkActivity#onStop(). If the
onStop()-triggered update failed 3 times, the WebAPK switched to
triggering updates on launch. (on update completion the running WebAPK would
crash).
This CL also:
- Renames the --check-for-web-manifest-update-on-startup to --debug-webapk-updates
BUG=
713655