[GID] Request sync state for IdentityDisc from ProfileSyncService
Currently sync state is requested from AndroidSyncSettings. This class only reflects local Android sync settings and doesn't get updated if sync is disabled for dasher account by domain administrator. ProfileSyncService#canSyncFeatureStart is the correct method to check if sync is enabled. Correspondingly IdentityDiscController should observe sync state through ProfileSyncService.SyncStateChangedListener. BUG=976089 R=mastiz@chromium.org,twellington@chromium.org Change-Id: Ibe1913c6743d1c6438945f0391ac8a21bfb03f0e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663376Reviewed-by:Mikel Astiz <mastiz@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Commit-Queue: Pavel Yatsuk <pavely@chromium.org> Cr-Commit-Position: refs/heads/master@{#670115}
Showing
Please register or sign in to comment