[signin] Fix AccountReconcilorState AccountReconcilor::EnableReconcile
As per comments in: https://chromium-review.googlesource.com/c/chromium/src/+/2001359/5/components/signin/core/browser/account_reconcilor.cc#452 There is a scenario where the reconcilor can be broken: if EnableReconcile is called as the reconcilor is already running, the state will be set to SCHEDULED, but is_reconcile_started_ remains true. From there the reconcilor is in inconsistent state, and triggers a DCHECK in FinishReconcileWithMultiloginEndpoint: DCHECK_EQ(AccountReconcilorState::ACCOUNT_RECONCILOR_RUNNING, state_); Change-Id: I4f7436f94b87b5e34b11b856d0b55bd880813877 Fixed: 1043651 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2010795 Commit-Queue: David Roger <droger@chromium.org> Reviewed-by:Kush Sinha <sinhak@chromium.org> Cr-Commit-Position: refs/heads/master@{#733400}
Showing
Please register or sign in to comment