[DeviceSync v2] Do not share group private key if no devices need it
If no devices request the group private key in the SyncMetadata response, do not attempt to share the group private key. Before this CL, an empty map might be sent to CryptAuthGroupPrivateKeySharer::ShareGroupPrivateKey(), which would subsequently crash from a DCHECK requiring the map to be non-empty. Bug: 951969 Change-Id: I0561538ab2bad53b8e065d2e216b92c2e2b25933 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1851325Reviewed-by:Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: Josh Nohle <nohle@chromium.org> Cr-Commit-Position: refs/heads/master@{#704868}
Showing
Please register or sign in to comment