Chromium Code Reviews
Description[Sync] Make ModelTypeController::DeactivateDataType idempotent
The issue is that ModelAssociationManager::StopDatatype() always calls
DeactivateDataType before Stop. It causes DCHECK if type wasn't previously
activated.
DirectoryDataTypeController::Deactivate is already idempotent, this change is to
mirror this behavior for USS type.
Proper fix is to update controller's state during activation and not call
Deactivate when not needed, but this change is more involved.
BUG=658443
R=maxbogue@chromium.org
Committed: https://crrev.com/9a4c395dd213a7ecbf0213924c213403aefc6a31
Cr-Commit-Position: refs/heads/master@{#429487}
Patch Set 1 #
Messages
Total messages: 11 (6 generated)
|
||||||||||||||||||||||||||||