[DeviceSync v2] Fix local device metadata race condition
Do not assume the local device has an Instance ID in the DeviceSync client if v2 DeviceSync is enabled. The local device will always have an Instance ID with CryptAuth, but there might be a race condition while v1 and v2 DeviceSync are running in parallel; the v1 local device data--which does not contain an Instance ID--might be returned before the v2 local device data. Bug: 951969, 1019206 Change-Id: I46882202d99cde87efc60cdd60628053a96c74f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078749 Commit-Queue: James Vecore <vecore@google.com> Reviewed-by:James Vecore <vecore@google.com> Auto-Submit: Josh Nohle <nohle@chromium.org> Cr-Commit-Position: refs/heads/master@{#746427}
Showing
Please register or sign in to comment