| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
!web_app_info.validated_scope_extensions.has_value();note: we allow installers to... pre-validate scope extensions, IDK if we need that for our feature here, but just noting that we don't do that for migration. seems good to me.
validated_origin_associations.migration_sources;nit: you can probably just inline this?
validated_origin_associations.migration_sources;nit: inline maybe?
.WillOnce([](base::OnceClosure callback, const base::Location& location) {nit: I "think" you can maybe do WillOnce(base::RunCallback<0>()) to simplify this?
From https://source.chromium.org/chromium/chromium/src/+/main:base/test/gmock_callback_support.h;l=168?q=gmock%20RunCallback&sq=&ss=chromium
or RunClosure actually? https://source.chromium.org/chromium/chromium/src/+/main:base/test/gmock_callback_support.h;l=90?q=gmock%20RunCallback&ss=chromium
std::move(callback).Run();nit: same as above
std::vector<proto::WebAppMigrationSource> migration_sources;ultra possible future nit: wrap this with something in the model/ directory, to help with invariant enforcement.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
!web_app_info.validated_scope_extensions.has_value();note: we allow installers to... pre-validate scope extensions, IDK if we need that for our feature here, but just noting that we don't do that for migration. seems good to me.
yeah, I started adding it for migrations too, but wasn't sure what the use case would be, so it seemed simpler to leave out (at least some of the scope extensions pre-validation code also has "remove this when ManifestUpdateCheckCommand is deleted" comments, at least in the update path...)
nit: you can probably just inline this?
Done
validated_origin_associations.migration_sources;Marijn Kruisselbrinknit: inline maybe?
Done
.WillOnce([](base::OnceClosure callback, const base::Location& location) {nit: I "think" you can maybe do WillOnce(base::RunCallback<0>()) to simplify this?
From https://source.chromium.org/chromium/chromium/src/+/main:base/test/gmock_callback_support.h;l=168?q=gmock%20RunCallback&sq=&ss=chromiumor RunClosure actually? https://source.chromium.org/chromium/chromium/src/+/main:base/test/gmock_callback_support.h;l=90?q=gmock%20RunCallback&ss=chromium
Done
std::move(callback).Run();Marijn Kruisselbrinknit: same as above
Done
std::vector<proto::WebAppMigrationSource> migration_sources;ultra possible future nit: wrap this with something in the model/ directory, to help with invariant enforcement.
yeah, just returning the raw proto type in WebApp isn't great either. I filed b/475920501 to consider improving this.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
15 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: chrome/browser/web_applications/web_app_install_finalizer.cc
Insertions: 4, Deletions: 8.
The diff is too large to show. Please review the diff.
```
```
The name of the file: chrome/browser/web_applications/web_app_install_finalizer_unittest.cc
Insertions: 4, Deletions: 10.
The diff is too large to show. Please review the diff.
```
[PWA Migration] Implement changes to WebAppInstallFinalizer
This adds (unvalidated) migration sources as loaded from the
manifest to WebAppInstallInfo, and updates WebAppInstallFinalizer
to populate this in the resulting WebApp. Additionally
ResolveWebAppPendingMigrationInfoCommand is triggered any time
the validated migration sources change.
WebAppInstallFinalizer will reject installing an app with install
state SUGGESTED_FROM_MIGRATION if no migration sources are
specified in the install info, but will let the install continue
if all of the migration sources fail validation. More general
cleanup of outdated SUGGESTED_FROM_MIGRATION apps will be implemented
separately.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |