[butter/self-share] Allow client to receive tab in sync transport mode
If the kSendTabToSelfWhenSignedIn feature is enabled, IsReceivingEnabledByUserOnThisDevice() will now return true both for signed-out and signed-in but not syncing users. This WAI since this information will never be sent to other clients unless the user is actually signed-in and sync-the-transport is running. It's hard to use to the SyncService API in this layer due to cyclic dependencies between DeviceInfoSyncService and ProfileSyncService. So the code still relies on the state of SyncPrefs, particularly IsFirstSetupComplete and SyncRequested. Bug: 956722 Change-Id: I60318e730a250c48d73417b71a2f23b263d665ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2526426Reviewed-by:sebsg <sebsg@chromium.org> Reviewed-by:
Mikel Astiz <mastiz@chromium.org> Commit-Queue: Victor Vianna <victorvianna@google.com> Cr-Commit-Position: refs/heads/master@{#830204}
Showing
Please register or sign in to comment