Decouple Sync from Android master sync as soon as master sync is enabled
This CL modifies the behavior of the DecoupleSyncFromAndroidMasterSync feature. When the feature is enabled, Sync will only decouple from master sync and be re-enabled once the master toggle is first re-enabled. The fact that the decoupling happened is persisted using the APIs from crrev.com/c/2398524. We also do some non-related code brush up: - Shorten the implementation of some methods in AndroidSyncSettingsUtils. - Deprecate one test constructor of AndroidSyncSettings. - Add missing assertOnUiThread() to the methods to add/remove an observer in AndroidSyncSettings. - Restrict AndroidSyncSettingsTest#testAccountInitialization to the case where the feature is disabled, which should have been done in crrev.com/c/2366895. Bug: 1125622 Change-Id: Ia37a1075b159754337c3c7308d9b789b8008ec21 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398504 Commit-Queue: Victor Vianna <victorvianna@google.com> Reviewed-by:Boris Sazonov <bsazonov@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#810274}
Showing
Please register or sign in to comment