Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Issue 2471943002: [Sync] Make ModelTypeController::DeactivateDataType idempotent (Closed)

Created:
4 years, 1 month ago by pavely
Modified:
4 years, 1 month ago
Reviewers:
maxbogue
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M components/sync/driver/model_type_controller.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M components/sync/driver/model_type_controller_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
pavely
4 years, 1 month ago (2016-11-02 22:56:58 UTC) #3
maxbogue
lgtm
4 years, 1 month ago (2016-11-02 23:06:36 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2471943002/1
4 years, 1 month ago (2016-11-03 00:04:16 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-03 00:58:41 UTC) #9
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 01:00:39 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9a4c395dd213a7ecbf0213924c213403aefc6a31
Cr-Commit-Position: refs/heads/master@{#429487}

Powered by Google App Engine
This is Rietveld 408576698