PasswordAccountStorageOptInWatcher: Observe SyncService instead of IdentityManager
Reason: The underlying state that's being watched (i.e. password_manager_util::IsOptedInForAccountStorage) gets the relevant account-related state from SyncService, not from IdentityManager. So this is more consistent, and ensures that there are no order-of-observers problems. (SyncService itself observes the IdentityManager, so before this CL, the outcome could depend on whether SyncService or PasswordAccountStorageOptInWatcher get notified first.) Bug: 1024332 Change-Id: I916c6035961056d46a2061a3eeb9362467ac8d26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2151871 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Mohamed Amir Yosef <mamir@chromium.org> Cr-Commit-Position: refs/heads/master@{#760088}
Showing
Please register or sign in to comment