[SyncInvalidations] Don't refresh device info if provider is not ready.
When Sync starts, interested data types and the FCM token are written to device info, and RefreshLocalDeviceInfo() is triggered. That can happen before the device info provider gets initialized, which then causes the check in SendLocalDataWithBatch() to fail. Since local device info is sent when everything is initialized, we can just ignore the request to refresh if the initialization is not finished. Bug: 1082115 Change-Id: I884e31853c3f9160ef960c01081b7c69aa9ce578 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2445169Reviewed-by:Marc Treib <treib@chromium.org> Reviewed-by:
Rushan Suleymanov <rushans@google.com> Commit-Queue: Paula Vidas <paulavidas@google.com> Cr-Commit-Position: refs/heads/master@{#813160}
Showing
Please register or sign in to comment