-
Maksim Moskvitin authored
The previous implementation of key retrieval notification on Android didn't notify TrustedVaultClient about changed keys upon completion. In order to detect completion of key retrieval pending intent, this CL adds TrustedVaultKeyRetrievalProxyActivity that just launches the real key retrieval pending intent, detects its completion and notifies TrustedVaultClient about changed keys. This activity doesn't require the Chrome browser process to be running when the user taps on notification. In order to avoid too many pending intents being created for this notification it's not allowed to create a new notification if one is already exists or being created. To ensure that newest real pending intent used for new notification, this CL also populates FLAG_UPDATE_CURRENT into PendingIntentProvider for Sync notifications. Bug: 1071377 Change-Id: Ibba3c9f02aa0bd233c128d98aa194f781a49d339 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2179547 Commit-Queue: Maksim Moskvitin <mmoskvitin@google.com> Reviewed-by:
Boris Sazonov <bsazonov@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Reviewed-by:
Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#770770}
2c1d8884